org.apache.servicemix.cxfbc
Class CxfBcConsumer

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.ConsumerEndpoint
              extended by org.apache.servicemix.cxfbc.CxfBcConsumer
All Implemented Interfaces:
ExchangeProcessor, CxfBcEndpointType, CxfBcEndpointWithInterceptor

public class CxfBcConsumer
extends ConsumerEndpoint
implements CxfBcEndpointWithInterceptor

Author:
gnodet

Nested Class Summary
protected  class CxfBcConsumer.JbiChainInitiationObserver
           
 class CxfBcConsumer.JbiInvokerInterceptor
           
protected  class CxfBcConsumer.JbiPostInvokerInterceptor
           
 
Field Summary
 
Fields inherited from class org.apache.servicemix.common.Endpoint
definition, description, endpoint, interfaceName, logger, service, serviceUnit
 
Constructor Summary
CxfBcConsumer()
           
 
Method Summary
protected  org.apache.cxf.Bus getBus()
           
 String getBusCfg()
           
 List<org.apache.cxf.feature.AbstractFeature> getFeatures()
           
 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 responses being recieved by the endpoint.
 String getLocationURI()
           
 List<org.apache.cxf.interceptor.Interceptor> getOutFaultInterceptors()
          Returns the list of interceptors used to process fault messages being sent to the provider.
 List<org.apache.cxf.interceptor.Interceptor> getOutInterceptors()
          Returns the list of interceptors used to process requests being sent to the provider.
 int getTimeout()
           
 org.springframework.core.io.Resource getWsdl()
           
 boolean isMtomEnabled()
           
 boolean isSynchronous()
           
 boolean isUseJBIWrapper()
           
 boolean isUseSOAPEnvelope()
           
 void process(MessageExchange exchange)
           
 void setBusCfg(String busCfg)
          Specifies the location of the CXF configuraiton file used to configure the CXF bus.
 void setFeatures(List<org.apache.cxf.feature.AbstractFeature> features)
           
 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 responses recieved by the endpoint.
 void setLocationURI(String locationURI)
          Specifies the HTTP address to which requests are sent.
 void setMtomEnabled(boolean mtomEnabled)
          Specifies if the endpoint can support binnary attachments.
 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 requests sent by the endpoint.
 void setSynchronous(boolean synchronous)
          Specifies if the endpoint expects send messageExchange by sendSync
 void setTimeout(int timeout)
          Specifies the interval for which the endpoint will wait for a response, This is specified in seconds.
 void setUseJBIWrapper(boolean useJBIWrapper)
          Specifies if the endpoint expects messages to use the JBI wrapper 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 setWsdl(org.springframework.core.io.Resource wsdl)
          Specifies the location of the WSDL defining the endpoint's interface.
 void start()
           
 void stop()
           
 void validate()
           
 
Methods inherited from class org.apache.servicemix.common.endpoints.ConsumerEndpoint
configureExchangeTarget, getRole, getTargetEndpoint, getTargetInterface, getTargetOperation, getTargetService, getTargetUri, setTargetEndpoint, setTargetInterface, setTargetOperation, setTargetService, setTargetUri
 
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

CxfBcConsumer

public CxfBcConsumer()
Method Detail

getWsdl

public org.springframework.core.io.Resource getWsdl()
Returns:
the wsdl

setWsdl

public void setWsdl(org.springframework.core.io.Resource wsdl)
Specifies the location of the WSDL defining the endpoint's interface.

Parameters:
wsdl - the location of the WSDL contract as a Resource object

getOutFaultInterceptors

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

Specified by:
getOutFaultInterceptors in interface CxfBcEndpointWithInterceptor
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 CxfBcEndpointWithInterceptor
Returns:
a list of Interceptor objects

getInInterceptors

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

Specified by:
getInInterceptors in interface CxfBcEndpointWithInterceptor
Returns:
a list of Interceptor objects

getOutInterceptors

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

Specified by:
getOutInterceptors in interface CxfBcEndpointWithInterceptor
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 responses recieved by the endpoint.

Specified by:
setInInterceptors in interface CxfBcEndpointWithInterceptor
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.

Specified by:
setInFaultInterceptors in interface CxfBcEndpointWithInterceptor
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 requests sent by the endpoint.

Specified by:
setOutInterceptors in interface CxfBcEndpointWithInterceptor
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.

Specified by:
setOutFaultInterceptors in interface CxfBcEndpointWithInterceptor
Parameters:
interceptors - a list of Interceptor objects

process

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

start

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

stop

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

validate

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

getBus

protected org.apache.cxf.Bus getBus()

setLocationURI

public void setLocationURI(String locationURI)
Specifies the HTTP address to which requests are sent. This value will overide any value specified in the WSDL.

Parameters:
locationURI - the URI as a string

getLocationURI

public String getLocationURI()
Specified by:
getLocationURI in class ConsumerEndpoint

setBusCfg

public void setBusCfg(String busCfg)
Specifies the location of the CXF configuraiton file used to configure the CXF bus. This allows you to access features like JMS runtime behavior and WS-RM.

Parameters:
busCfg - a string containing the relative path to the configuration file

getBusCfg

public String getBusCfg()

setMtomEnabled

public void setMtomEnabled(boolean mtomEnabled)
Specifies if the endpoint can support binnary attachments.

Parameters:
mtomEnabled - a boolean

isMtomEnabled

public boolean isMtomEnabled()

setTimeout

public void setTimeout(int timeout)
Specifies the interval for which the endpoint will wait for a response, This is specified in seconds.

Parameters:
timeout - the number of second to wait for a response

getTimeout

public int getTimeout()

setUseJBIWrapper

public void setUseJBIWrapper(boolean useJBIWrapper)
Specifies if the endpoint expects messages to use the JBI wrapper for SOAP messages.

Parameters:
useJBIWrapper - 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()

setSynchronous

public void setSynchronous(boolean synchronous)
Specifies if the endpoint expects send messageExchange by sendSync

Parameters:
synchronous - a boolean

isSynchronous

public boolean isSynchronous()

setFeatures

public void setFeatures(List<org.apache.cxf.feature.AbstractFeature> features)

getFeatures

public List<org.apache.cxf.feature.AbstractFeature> getFeatures()


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