org.apache.servicemix.cxfse
Class CxfSeEndpoint

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.cxfse.CxfSeEndpoint
All Implemented Interfaces:
org.apache.cxf.interceptor.InterceptorProvider, ExchangeProcessor

public class CxfSeEndpoint
extends ProviderEndpoint
implements org.apache.cxf.interceptor.InterceptorProvider

Author:
gnodet

Field Summary
 
Fields inherited from class org.apache.servicemix.common.Endpoint
definition, description, interfaceName, logger, service, serviceUnit
 
Constructor Summary
CxfSeEndpoint()
           
 
Method Summary
protected  org.apache.cxf.Bus getBus()
           
 List<org.apache.cxf.interceptor.Interceptor> getInFaultInterceptors()
          Returns the list of interceptors used to process fault messages being recieved by the endpoint.
 List<org.apache.cxf.interceptor.Interceptor> getInInterceptors()
          Returns the list of interceptors used to process messages being recieved by the endpoint.
 List<org.apache.cxf.interceptor.Interceptor> getOutFaultInterceptors()
          Returns the list of interceptors used to process fault messages being sent back to the consumer.
 List<org.apache.cxf.interceptor.Interceptor> getOutInterceptors()
          Returns the list of interceptors used to process responses being sent back to the consumer.
 Object getPojo()
          Returns the object implementing the endpoint's functionality.
 Map getProperties()
           
protected  void injectPojo()
           
 boolean isMtomEnabled()
           
 boolean isSchemaValidationEnabled()
           
 boolean isUseAegis()
           
 boolean isUseJBIWrapper()
           
 boolean isUseSOAPEnvelope()
           
 void process(MessageExchange exchange)
           
 void setInFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor> interceptors)
          Specifies a list of interceptors used to process faults recieved by the endpoint.
 void setInInterceptors(List<org.apache.cxf.interceptor.Interceptor> interceptors)
          Specifies a list of interceptors used to process requests recieved by the endpoint.
 void setMtomEnabled(boolean mtomEnabled)
          Specifies if the endpoint can process messages with binary data.
 void setOutFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor> interceptors)
          Specifies a list of interceptors used to process faults sent by the endpoint.
 void setOutInterceptors(List<org.apache.cxf.interceptor.Interceptor> interceptors)
          Specifies a list of interceptors used to process responses sent by the endpoint.
 void setPojo(Object pojo)
          Specifies the object implementing the endpoint's functionality.
 void setProperties(Map properties)
           
 void setSchemaValidationEnabled(boolean schemaValidationEnabled)
           
 void setUseAegis(boolean useAegis)
          Specifies if the endpoint use aegis databinding to marshell/unmarshell message
 void setUseJBIWrapper(boolean useJBIWrapper)
          Specifies if the endpoint expects messages that are encased in the JBI wrapper used for SOAP messages.
 void setUseSOAPEnvelope(boolean useSOAPEnvelope)
          Specifies if the endpoint expects soap messages when useJBIWrapper is false, if useJBIWrapper is true then ignore useSOAPEnvelope
 void start()
           
 void stop()
           
 void validate()
           
 
Methods inherited from class org.apache.servicemix.common.endpoints.ProviderEndpoint
getRole, processInOnly, processInOut
 
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, getKey, getService, getServiceUnit, isExchangeOkay, setDefinition, setDescription, setEndpoint, setInterfaceName, setService, setServiceUnit, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CxfSeEndpoint

public CxfSeEndpoint()
Method Detail

getPojo

public Object getPojo()
Returns the object implementing the endpoint's functionality. It is returned as a generic Java Object that can be cast to the proper type.

Returns:
the pojo

setPojo

public void setPojo(Object pojo)
Specifies the object implementing the endpoint's functionality. This object should use the JAX-WS annotations.

Parameters:
pojo - a JAX-WS annotated object

getOutFaultInterceptors

public List<org.apache.cxf.interceptor.Interceptor> getOutFaultInterceptors()
Returns the list of interceptors used to process fault messages being sent back to the consumer.

Specified by:
getOutFaultInterceptors in interface org.apache.cxf.interceptor.InterceptorProvider
Returns:
a list of Interceptor objects

getInFaultInterceptors

public List<org.apache.cxf.interceptor.Interceptor> getInFaultInterceptors()
Returns the list of interceptors used to process fault messages being recieved by the endpoint.

Specified by:
getInFaultInterceptors in interface org.apache.cxf.interceptor.InterceptorProvider
Returns:
a list of Interceptor objects

getInInterceptors

public List<org.apache.cxf.interceptor.Interceptor> getInInterceptors()
Returns the list of interceptors used to process messages being recieved by the endpoint.

Specified by:
getInInterceptors in interface org.apache.cxf.interceptor.InterceptorProvider
Returns:
a list of Interceptor objects

getOutInterceptors

public List<org.apache.cxf.interceptor.Interceptor> getOutInterceptors()
Returns the list of interceptors used to process responses being sent back to the consumer.

Specified by:
getOutInterceptors in interface org.apache.cxf.interceptor.InterceptorProvider
Returns:
a list of Interceptor objects

setInInterceptors

public void setInInterceptors(List<org.apache.cxf.interceptor.Interceptor> interceptors)
Specifies a list of interceptors used to process requests recieved by the endpoint.

Parameters:
interceptors - a list of Interceptor objects

setInFaultInterceptors

public void setInFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor> interceptors)
Specifies a list of interceptors used to process faults recieved by the endpoint.

Parameters:
interceptors - a list of Interceptor objects

setOutInterceptors

public void setOutInterceptors(List<org.apache.cxf.interceptor.Interceptor> interceptors)
Specifies a list of interceptors used to process responses sent by the endpoint.

Parameters:
interceptors - a list of Interceptor objects

setOutFaultInterceptors

public void setOutFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor> interceptors)
Specifies a list of interceptors used to process faults sent by the endpoint.

Parameters:
interceptors - a list of Interceptor objects

getProperties

public Map getProperties()

setProperties

public void setProperties(Map properties)

validate

public void validate()
              throws DeploymentException
Overrides:
validate in class Endpoint
Throws:
DeploymentException

process

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

start

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

stop

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

getBus

protected org.apache.cxf.Bus getBus()

injectPojo

@PostConstruct
protected void injectPojo()

setMtomEnabled

public void setMtomEnabled(boolean mtomEnabled)
Specifies if the endpoint can process messages with binary data.

Parameters:
mtomEnabled - a boolean

isMtomEnabled

public boolean isMtomEnabled()

isSchemaValidationEnabled

public boolean isSchemaValidationEnabled()

setSchemaValidationEnabled

public void setSchemaValidationEnabled(boolean schemaValidationEnabled)

setUseJBIWrapper

public void setUseJBIWrapper(boolean useJBIWrapper)
Specifies if the endpoint expects messages that are encased in the JBI wrapper used for SOAP messages.

Parameters:
mtomEnabled - a boolean

isUseJBIWrapper

public boolean isUseJBIWrapper()

setUseSOAPEnvelope

public void setUseSOAPEnvelope(boolean useSOAPEnvelope)
Specifies if the endpoint expects soap messages when useJBIWrapper is false, if useJBIWrapper is true then ignore useSOAPEnvelope


isUseSOAPEnvelope

public boolean isUseSOAPEnvelope()

setUseAegis

public void setUseAegis(boolean useAegis)
Specifies if the endpoint use aegis databinding to marshell/unmarshell message


isUseAegis

public boolean isUseAegis()


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