org.apache.servicemix.wsn.component
Class WSNEndpoint

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

public class WSNEndpoint
extends Endpoint
implements ExchangeProcessor


Nested Class Summary
static class WSNEndpoint.JbiFault
           
 
Field Summary
protected  ServiceEndpoint activated
           
protected  String address
           
protected  DeliveryChannel channel
           
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
 void activate()
           
static javax.xml.bind.JAXBContext createJAXBContext(Class interfaceClass)
           
 void deactivate()
           
 ExchangeProcessor getProcessor()
           
 MessageExchange.Role getRole()
           
protected  javax.jws.WebService getWebServiceAnnotation(Class clazz)
           
protected  Method getWebServiceMethod(QName interfaceName, QName operation)
           
 void process(MessageExchange exchange)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.apache.servicemix.common.Endpoint
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, getService, getServiceUnit, isExchangeOkay, 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
 

Field Detail

activated

protected ServiceEndpoint activated

address

protected String address

pojo

protected Object pojo

channel

protected DeliveryChannel channel

jaxbContext

protected javax.xml.bind.JAXBContext jaxbContext

endpointInterface

protected Class endpointInterface
Constructor Detail

WSNEndpoint

public WSNEndpoint(String address,
                   Object pojo)
Method Detail

getRole

public MessageExchange.Role getRole()
Specified by:
getRole in class Endpoint

activate

public void activate()
              throws Exception
Specified by:
activate in class Endpoint
Throws:
Exception

createJAXBContext

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

deactivate

public void deactivate()
                throws Exception
Specified by:
deactivate in class Endpoint
Throws:
Exception

getProcessor

public ExchangeProcessor getProcessor()
Specified by:
getProcessor in class Endpoint

process

public void process(MessageExchange exchange)
             throws Exception
Specified by:
process in interface ExchangeProcessor
Throws:
Exception

getWebServiceMethod

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

getWebServiceAnnotation

protected javax.jws.WebService getWebServiceAnnotation(Class clazz)

start

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

stop

public void stop()
          throws Exception
Specified by:
stop in interface ExchangeProcessor
Throws:
Exception


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