org.apache.servicemix.wsn.component
Class WSNEndpoint

java.lang.Object
  extended by org.apache.servicemix.common.Endpoint
      extended by org.apache.servicemix.common.endpoints.SimpleEndpoint
          extended by org.apache.servicemix.common.endpoints.ProviderEndpoint
              extended by org.apache.servicemix.wsn.component.WSNEndpoint
All Implemented Interfaces:
ExchangeProcessor

public class WSNEndpoint
extends ProviderEndpoint
implements ExchangeProcessor


Nested Class Summary
static class WSNEndpoint.JbiFault
           
 
Field Summary
protected  String address
           
protected  Class endpointInterface
           
protected  javax.xml.bind.JAXBContext jaxbContext
           
protected  Object pojo
           
 
Fields inherited from class org.apache.servicemix.common.Endpoint
definition, description, endpoint, interfaceName, logger, service, serviceUnit
 
Constructor Summary
WSNEndpoint(String address, Object pojo)
           
 
Method Summary
static javax.xml.bind.JAXBContext createJAXBContext(Class interfaceClass)
           
protected  javax.jws.WebService getWebServiceAnnotation(Class clazz)
           
protected  Method getWebServiceMethod(QName interfaceName, QName operation)
           
 void process(javax.jbi.messaging.MessageExchange exchange)
           
 void start()
           
 
Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint
getRole, processInOnly, processInOut, stop
 
Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
activate, deactivate, done, fail, getChannel, getContext, getExchangeFactory, getProcessor, send, sendSync
 
Methods inherited from class org.apache.servicemix.common.Endpoint
getDefinition, getDescription, getEndpoint, getInterfaceName, getService, getServiceUnit, isExchangeOkay, prepareExchange, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.servicemix.common.ExchangeProcessor
stop
 

Field Detail

address

protected String address

pojo

protected Object pojo

jaxbContext

protected javax.xml.bind.JAXBContext jaxbContext

endpointInterface

protected Class endpointInterface
Constructor Detail

WSNEndpoint

public WSNEndpoint(String address,
                   Object pojo)
Method Detail

start

public void start()
           throws Exception
Specified by:
start in interface ExchangeProcessor
Overrides:
start in class ProviderEndpoint
Throws:
Exception

createJAXBContext

public static javax.xml.bind.JAXBContext createJAXBContext(Class interfaceClass)
                                                    throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

process

public void process(javax.jbi.messaging.MessageExchange exchange)
             throws Exception
Specified by:
process in interface ExchangeProcessor
Overrides:
process in class ProviderEndpoint
Throws:
Exception

getWebServiceMethod

protected Method getWebServiceMethod(QName interfaceName,
                                     QName operation)
                              throws Exception
Throws:
Exception

getWebServiceAnnotation

protected javax.jws.WebService getWebServiceAnnotation(Class clazz)


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.