org.apache.servicemix.wsn.component
Class WSNEndpoint

java.lang.Object
  extended by org.apache.servicemix.common.endpoints.AbstractEndpoint
      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:
Endpoint

public class WSNEndpoint
extends ProviderEndpoint


Nested Class Summary
static class WSNEndpoint.JbiFault
           
static class WSNEndpoint.XmlException
           
 
Field Summary
protected  String address
           
protected  Set<Class> endpointInterfaces
           
protected  javax.xml.bind.JAXBContext jaxbContext
           
protected  Object pojo
           
 
Fields inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
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)
           
static javax.xml.bind.JAXBContext createJAXBContext(Iterable<Class> interfaceClasses)
           
 javax.xml.bind.JAXBContext getJaxbContext()
           
protected  javax.jws.WebService getWebServiceAnnotation(Class clazz)
           
protected  Method getWebServiceMethod(QName interfaceName, QName operation)
           
 void process(javax.jbi.messaging.MessageExchange exchange)
           
 
Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint
deactivate, getRole, processInOnly, processInOut
 
Methods inherited from class org.apache.servicemix.common.endpoints.SimpleEndpoint
done, fail, getChannel, getContext, getExchangeFactory, send, sendSync, start, stop
 
Methods inherited from class org.apache.servicemix.common.endpoints.AbstractEndpoint
getDefinition, getDescription, getEndpoint, getInterfaceName, getKey, 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
 

Field Detail

address

protected String address

pojo

protected Object pojo

jaxbContext

protected javax.xml.bind.JAXBContext jaxbContext

endpointInterfaces

protected Set<Class> endpointInterfaces
Constructor Detail

WSNEndpoint

public WSNEndpoint(String address,
                   Object pojo)
Method Detail

activate

public void activate()
              throws Exception
Specified by:
activate in interface Endpoint
Overrides:
activate 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

createJAXBContext

public static javax.xml.bind.JAXBContext createJAXBContext(Iterable<Class> interfaceClasses)
                                                    throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException

getJaxbContext

public javax.xml.bind.JAXBContext getJaxbContext()

process

public void process(javax.jbi.messaging.MessageExchange exchange)
             throws Exception
Specified by:
process in interface Endpoint
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.