org.apache.camel.component.cxf
Class CxfEndpoint

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.component.cxf.CxfEndpoint
All Implemented Interfaces:
Cloneable, org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId, org.apache.camel.spi.HeaderFilterStrategyAware, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
Direct Known Subclasses:
CxfBlueprintEndpoint, CxfSpringEndpoint

public class CxfEndpoint
extends org.apache.camel.impl.DefaultEndpoint
implements org.apache.camel.spi.HeaderFilterStrategyAware, org.apache.camel.Service, Cloneable

Defines the CXF Endpoint. It contains a list of properties for CXF endpoint including DataFormat, CxfBinding, and HeaderFilterStrategy. The default DataFormat mode is DataFormat.POJO.


Field Summary
protected  org.apache.cxf.Bus bus
           
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
CxfEndpoint()
           
CxfEndpoint(String remaining)
          Deprecated. 
CxfEndpoint(String remaining, org.apache.camel.CamelContext context)
          Deprecated. 
CxfEndpoint(String remaining, CxfComponent cxfComponent)
           
 
Method Summary
 CxfEndpoint copy()
           
protected  org.apache.cxf.frontend.ClientFactoryBean createClientFactoryBean()
          Create a client factory bean object without serviceClass interface.
protected  org.apache.cxf.frontend.ClientFactoryBean createClientFactoryBean(Class<?> cls)
          Create a client factory bean object.
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
           
 org.apache.camel.Producer createProducer()
           
protected  void doStart()
           
protected  void doStop()
           
 String getAddress()
           
 Boolean getAllowStreaming()
           
 org.apache.cxf.binding.BindingConfiguration getBindingConfig()
           
 String getBindingId()
           
 org.apache.cxf.Bus getBus()
           
 CxfBinding getCxfBinding()
           
 org.apache.cxf.databinding.DataBinding getDataBinding()
           
 DataFormat getDataFormat()
           
 String getDefaultOperationName()
           
 String getDefaultOperationNamespace()
           
 List<org.apache.cxf.feature.AbstractFeature> getFeatures()
           
 List<Handler> getHandlers()
           
 org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
           
 List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getInFaultInterceptors()
           
 List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getInInterceptors()
           
 int getLoggingSizeLimit()
           
 List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getOutFaultInterceptors()
           
 List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getOutInterceptors()
           
 QName getPortName()
           
 Map<String,Object> getProperties()
           
 String getPublishedEndpointUrl()
           
 List<String> getSchemaLocations()
           
 Class<?> getServiceClass()
           
 org.apache.cxf.service.factory.ReflectionServiceFactoryBean getServiceFactoryBean()
           
 QName getServiceName()
           
 String getTransportId()
           
 Boolean getWrappedStyle()
           
 String getWsdlURL()
           
 boolean isInOut()
           
 boolean isLoggingFeatureEnabled()
           
 boolean isMtomEnabled()
           
 boolean isSetDefaultBus()
           
 boolean isSingleton()
           
protected  boolean isSkipPayloadMessagePartCheck()
           
 boolean isWrapped()
           
protected  String resolvePropertyPlaceholders(String str)
           
 void setAddress(String address)
           
 void setAllowStreaming(Boolean b)
           
 void setBindingConfig(org.apache.cxf.binding.BindingConfiguration bindingConfig)
           
 void setBindingId(String bindingId)
           
 void setBus(org.apache.cxf.Bus bus)
           
 void setCamelContext(org.apache.camel.CamelContext c)
           
 void setCxfBinding(CxfBinding cxfBinding)
           
 void setDataBinding(org.apache.cxf.databinding.DataBinding dataBinding)
           
 void setDataFormat(DataFormat format)
           
 void setDefaultOperationName(String name)
           
 void setDefaultOperationNamespace(String namespace)
           
 void setEndpointName(QName port)
           
 void setEndpointNameString(String port)
           
 void setFeatures(List<org.apache.cxf.feature.AbstractFeature> f)
           
 void setHandlers(List<Handler> h)
           
 void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
           
 void setInFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
           
 void setInInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
           
 void setInOut(boolean inOut)
           
 void setLoggingFeatureEnabled(boolean loggingFeatureEnabled)
           
 void setLoggingSizeLimit(int loggingSizeLimit)
           
 void setMtomEnabled(boolean mtomEnabled)
           
 void setOutFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
           
 void setOutInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
           
 void setPortName(QName port)
           
 void setProperties(Map<String,Object> properties)
           
 void setPublishedEndpointUrl(String url)
           
 void setSchemaLocations(List<String> sc)
           
 void setServiceClass(Class<?> cls)
           
 void setServiceClass(Object instance)
           
 void setServiceClass(String type)
           
 void setServiceFactoryBean(org.apache.cxf.service.factory.ReflectionServiceFactoryBean serviceFactoryBean)
           
 void setServiceName(QName service)
           
 void setServiceNameString(String service)
           
 void setSetDefaultBus(boolean isSetDefaultBus)
           
protected  void setSkipPayloadMessagePartCheck(boolean skipPayloadMessagePartCheck)
           
 void setTransportId(String transportId)
           
protected  void setupClientFactoryBean(org.apache.cxf.frontend.ClientFactoryBean factoryBean, Class<?> cls)
           
protected  void setupHandlers(org.apache.cxf.frontend.ClientFactoryBean factoryBean, org.apache.cxf.endpoint.Client client)
           
protected  void setupServerFactoryBean(org.apache.cxf.frontend.ServerFactoryBean sfb, Class<?> cls)
          Populate server factory bean
 void setWrapped(boolean wrapped)
           
 void setWrappedStyle(Boolean wrapped)
           
 void setWsdlURL(String url)
           
protected  void updateEndpointUri(String endpointUri)
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Field Detail

bus

protected org.apache.cxf.Bus bus
Constructor Detail

CxfEndpoint

public CxfEndpoint(String remaining,
                   CxfComponent cxfComponent)

CxfEndpoint

@Deprecated
public CxfEndpoint(String remaining,
                              org.apache.camel.CamelContext context)
Deprecated. 


CxfEndpoint

@Deprecated
public CxfEndpoint(String remaining)
Deprecated. 


CxfEndpoint

public CxfEndpoint()
Method Detail

copy

public CxfEndpoint copy()

updateEndpointUri

protected void updateEndpointUri(String endpointUri)

createProducer

public org.apache.camel.Producer createProducer()
                                         throws Exception
Specified by:
createProducer in interface org.apache.camel.Endpoint
Throws:
Exception

createConsumer

public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
                                         throws Exception
Specified by:
createConsumer in interface org.apache.camel.Endpoint
Throws:
Exception

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.apache.camel.IsSingleton

setupServerFactoryBean

protected void setupServerFactoryBean(org.apache.cxf.frontend.ServerFactoryBean sfb,
                                      Class<?> cls)
Populate server factory bean


createClientFactoryBean

protected org.apache.cxf.frontend.ClientFactoryBean createClientFactoryBean(Class<?> cls)
                                                                     throws org.apache.camel.CamelException
Create a client factory bean object. Notice that the serviceClass must be an interface.

Throws:
org.apache.camel.CamelException

createClientFactoryBean

protected org.apache.cxf.frontend.ClientFactoryBean createClientFactoryBean()
Create a client factory bean object without serviceClass interface.


setupHandlers

protected void setupHandlers(org.apache.cxf.frontend.ClientFactoryBean factoryBean,
                             org.apache.cxf.endpoint.Client client)

setupClientFactoryBean

protected void setupClientFactoryBean(org.apache.cxf.frontend.ClientFactoryBean factoryBean,
                                      Class<?> cls)

resolvePropertyPlaceholders

protected String resolvePropertyPlaceholders(String str)

getDataFormat

public DataFormat getDataFormat()

setDataFormat

public void setDataFormat(DataFormat format)

getPublishedEndpointUrl

public String getPublishedEndpointUrl()

setPublishedEndpointUrl

public void setPublishedEndpointUrl(String url)

getWsdlURL

public String getWsdlURL()

setWsdlURL

public void setWsdlURL(String url)

getServiceClass

public Class<?> getServiceClass()

setServiceClass

public void setServiceClass(Class<?> cls)

setServiceClass

public void setServiceClass(Object instance)

setServiceClass

public void setServiceClass(String type)
                     throws ClassNotFoundException
Throws:
ClassNotFoundException

setServiceNameString

public void setServiceNameString(String service)

setServiceName

public void setServiceName(QName service)

getServiceName

public QName getServiceName()

getPortName

public QName getPortName()

setPortName

public void setPortName(QName port)

setEndpointNameString

public void setEndpointNameString(String port)

setEndpointName

public void setEndpointName(QName port)

getDefaultOperationName

public String getDefaultOperationName()

setDefaultOperationName

public void setDefaultOperationName(String name)

getDefaultOperationNamespace

public String getDefaultOperationNamespace()

setDefaultOperationNamespace

public void setDefaultOperationNamespace(String namespace)

isInOut

public boolean isInOut()

setInOut

public void setInOut(boolean inOut)

isWrapped

public boolean isWrapped()

setWrapped

public void setWrapped(boolean wrapped)

getWrappedStyle

public Boolean getWrappedStyle()

setWrappedStyle

public void setWrappedStyle(Boolean wrapped)

setAllowStreaming

public void setAllowStreaming(Boolean b)

getAllowStreaming

public Boolean getAllowStreaming()

setCxfBinding

public void setCxfBinding(CxfBinding cxfBinding)

getCxfBinding

public CxfBinding getCxfBinding()

setHeaderFilterStrategy

public void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
Specified by:
setHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAware

getHeaderFilterStrategy

public org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
Specified by:
getHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAware

setBus

public void setBus(org.apache.cxf.Bus bus)

getBus

public org.apache.cxf.Bus getBus()

setSetDefaultBus

public void setSetDefaultBus(boolean isSetDefaultBus)

isSetDefaultBus

public boolean isSetDefaultBus()

setLoggingFeatureEnabled

public void setLoggingFeatureEnabled(boolean loggingFeatureEnabled)

isLoggingFeatureEnabled

public boolean isLoggingFeatureEnabled()

getLoggingSizeLimit

public int getLoggingSizeLimit()

setLoggingSizeLimit

public void setLoggingSizeLimit(int loggingSizeLimit)

isSkipPayloadMessagePartCheck

protected boolean isSkipPayloadMessagePartCheck()

setSkipPayloadMessagePartCheck

protected void setSkipPayloadMessagePartCheck(boolean skipPayloadMessagePartCheck)

getProperties

public Map<String,Object> getProperties()

setCamelContext

public void setCamelContext(org.apache.camel.CamelContext c)
Specified by:
setCamelContext in interface org.apache.camel.CamelContextAware
Specified by:
setCamelContext in interface org.apache.camel.Endpoint
Overrides:
setCamelContext in class org.apache.camel.impl.DefaultEndpoint

setProperties

public void setProperties(Map<String,Object> properties)

doStart

protected void doStart()
                throws Exception
Overrides:
doStart in class org.apache.camel.impl.DefaultEndpoint
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Overrides:
doStop in class org.apache.camel.impl.DefaultEndpoint
Throws:
Exception

setAddress

public void setAddress(String address)

getAddress

public String getAddress()

setMtomEnabled

public void setMtomEnabled(boolean mtomEnabled)

isMtomEnabled

public boolean isMtomEnabled()

getOutFaultInterceptors

public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getOutFaultInterceptors()

getInFaultInterceptors

public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getInFaultInterceptors()

getInInterceptors

public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getInInterceptors()

getOutInterceptors

public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getOutInterceptors()

setInInterceptors

public void setInInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)

setInFaultInterceptors

public void setInFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)

setOutInterceptors

public void setOutInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)

setOutFaultInterceptors

public void setOutFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)

setFeatures

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

getFeatures

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

setHandlers

public void setHandlers(List<Handler> h)

getHandlers

public List<Handler> getHandlers()

setSchemaLocations

public void setSchemaLocations(List<String> sc)

getSchemaLocations

public List<String> getSchemaLocations()

getTransportId

public String getTransportId()

setTransportId

public void setTransportId(String transportId)

getBindingId

public String getBindingId()

setBindingId

public void setBindingId(String bindingId)

getBindingConfig

public org.apache.cxf.binding.BindingConfiguration getBindingConfig()

setBindingConfig

public void setBindingConfig(org.apache.cxf.binding.BindingConfiguration bindingConfig)

getDataBinding

public org.apache.cxf.databinding.DataBinding getDataBinding()

setDataBinding

public void setDataBinding(org.apache.cxf.databinding.DataBinding dataBinding)

getServiceFactoryBean

public org.apache.cxf.service.factory.ReflectionServiceFactoryBean getServiceFactoryBean()

setServiceFactoryBean

public void setServiceFactoryBean(org.apache.cxf.service.factory.ReflectionServiceFactoryBean serviceFactoryBean)


Apache CAMEL