org.apache.camel.component.cxf
Class CxfEndpoint
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
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 |
| 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 interface org.apache.camel.Service |
start, stop |
bus
protected org.apache.cxf.Bus bus
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()
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