@UriEndpoint(firstVersion="1.0.0",
scheme="cxf",
title="CXF",
syntax="cxf:beanId:address",
category={SOAP,WEBSERVICE})
public class CxfEndpoint
extends org.apache.camel.support.DefaultEndpoint
implements org.apache.camel.AsyncEndpoint, org.apache.camel.spi.HeaderFilterStrategyAware, org.apache.camel.Service, Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.cxf.Bus |
bus |
protected boolean |
createBus |
| Constructor and Description |
|---|
CxfEndpoint() |
CxfEndpoint(String remaining,
CxfComponent cxfComponent) |
| Modifier and Type | Method and Description |
|---|---|
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 |
doInit() |
protected void |
doStop() |
String |
getAddress() |
Boolean |
getAllowStreaming() |
String |
getBeanId() |
org.apache.cxf.binding.BindingConfiguration |
getBindingConfig() |
String |
getBindingId() |
org.apache.cxf.Bus |
getBus() |
CxfConfigurer |
getChainedCxfConfigurer() |
long |
getContinuationTimeout() |
org.apache.camel.http.base.cookie.CookieHandler |
getCookieHandler() |
CxfBinding |
getCxfBinding() |
CxfConfigurer |
getCxfConfigurer() |
org.apache.cxf.databinding.DataBinding |
getDataBinding() |
DataFormat |
getDataFormat() |
String |
getDefaultOperationName() |
String |
getDefaultOperationNamespace() |
List<org.apache.cxf.feature.Feature> |
getFeatures() |
List<Handler> |
getHandlers() |
org.apache.camel.spi.HeaderFilterStrategy |
getHeaderFilterStrategy() |
HostnameVerifier |
getHostnameVerifier() |
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() |
String |
getPassword() |
String |
getPortName() |
QName |
getPortNameAsQName() |
Map<String,Object> |
getProperties() |
String |
getPublishedEndpointUrl() |
List<String> |
getSchemaLocations() |
Class<?> |
getServiceClass() |
Object |
getServiceFactoryBean() |
String |
getServiceName() |
QName |
getServiceNameAsQName() |
org.apache.camel.support.jsse.SSLContextParameters |
getSslContextParameters() |
String |
getTransportId() |
String |
getUsername() |
Boolean |
getWrappedStyle() |
String |
getWsdlURL() |
boolean |
isDefaultBus() |
boolean |
isLoggingFeatureEnabled() |
boolean |
isMergeProtocolHeaders() |
boolean |
isMtomEnabled() |
boolean |
isSkipFaultLogging() |
boolean |
isSkipPayloadMessagePartCheck() |
boolean |
isSynchronous() |
boolean |
isWrapped() |
protected String |
resolvePropertyPlaceholders(String str) |
void |
setAddress(String address)
The service publish address.
|
void |
setAllowStreaming(Boolean allowStreaming)
This option controls whether the CXF component, when running in PAYLOAD mode, will DOM parse the incoming
messages into DOM Elements or keep the payload as a javax.xml.transform.Source object that would allow streaming
in some cases.
|
void |
setBeanId(String beanId) |
void |
setBindingConfig(org.apache.cxf.binding.BindingConfiguration bindingConfig) |
void |
setBindingId(String bindingId)
The bindingId for the service model to use.
|
void |
setBus(org.apache.cxf.Bus bus)
To use a custom configured CXF Bus.
|
void |
setCamelContext(org.apache.camel.CamelContext c) |
void |
setContinuationTimeout(long continuationTimeout)
This option is used to set the CXF continuation timeout which could be used in CxfConsumer by default when the
CXF server is using Jetty or Servlet transport.
|
void |
setCookieHandler(org.apache.camel.http.base.cookie.CookieHandler cookieHandler)
Configure a cookie handler to maintain a HTTP session
|
void |
setCxfBinding(CxfBinding cxfBinding)
To use a custom CxfBinding to control the binding between Camel Message and CXF Message.
|
void |
setCxfConfigurer(CxfConfigurer configurer)
This option could apply the implementation of org.apache.camel.component.cxf.CxfEndpointConfigurer which supports
to configure the CXF endpoint in programmatic way.
|
void |
setDataBinding(org.apache.cxf.databinding.DataBinding dataBinding) |
void |
setDataFormat(DataFormat format)
The data type messages supported by the CXF endpoint.
|
void |
setDefaultBus(boolean defaultBus)
Will set the default bus when CXF endpoint create a bus by itself
|
void |
setDefaultOperationName(String name)
This option will set the default operationName that will be used by the CxfProducer which invokes the remote
service.
|
void |
setDefaultOperationNamespace(String namespace)
This option will set the default operationNamespace that will be used by the CxfProducer which invokes the remote
service.
|
void |
setEndpointName(String name) |
void |
setEndpointNameAsQName(QName qName) |
void |
setFeatures(List<org.apache.cxf.feature.Feature> f) |
void |
setHandlers(List<Handler> h) |
void |
setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
To use a custom HeaderFilterStrategy to filter header to and from Camel message.
|
void |
setHostnameVerifier(HostnameVerifier hostnameVerifier)
The hostname verifier to be used.
|
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 |
setLoggingFeatureEnabled(boolean loggingFeatureEnabled)
This option enables CXF Logging Feature which writes inbound and outbound SOAP messages to log.
|
void |
setLoggingSizeLimit(int loggingSizeLimit)
To limit the total size of number of bytes the logger will output when logging feature has been enabled and -1
for no limit.
|
void |
setMergeProtocolHeaders(boolean mergeProtocolHeaders)
Whether to merge protocol headers.
|
void |
setMtomEnabled(boolean mtomEnabled)
To enable MTOM (attachments).
|
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 |
setPassword(String password)
This option is used to set the basic authentication information of password for the CXF client.
|
void |
setPortName(String port)
The endpoint name this service is implementing, it maps to the wsdl:port@name.
|
void |
setPortNameAsQName(QName qName) |
void |
setProperties(Map<String,Object> properties)
To set additional CXF options using the key/value pairs from the Map.
|
void |
setPublishedEndpointUrl(String url)
This option can override the endpointUrl that published from the WSDL which can be accessed with service address
url plus ?wsd
|
void |
setSchemaLocations(List<String> sc) |
void |
setServiceClass(Class<?> cls)
The class name of the SEI (Service Endpoint Interface) class which could have JSR181 annotation or not.
|
void |
setServiceClass(Object instance)
The class name of the SEI (Service Endpoint Interface) class which could have JSR181 annotation or not.
|
void |
setServiceClass(String type)
The class name of the SEI (Service Endpoint Interface) class which could have JSR181 annotation or not.
|
void |
setServiceFactory(Object serviceFactoryBean) |
void |
setServiceFactoryBean(Object serviceFactoryBean) |
void |
setServiceName(String service)
The service name this service is implementing, it maps to the wsdl:service@name.
|
void |
setServiceNameAsQName(QName qName) |
void |
setSkipFaultLogging(boolean skipFaultLogging)
This option controls whether the PhaseInterceptorChain skips logging the Fault that it catches.
|
void |
setSkipPayloadMessagePartCheck(boolean skipPayloadMessagePartCheck)
Sets whether SOAP message validation should be disabled.
|
void |
setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
The Camel SSL setting reference.
|
void |
setSynchronous(boolean synchronous) |
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 |
setUsername(String username)
This option is used to set the basic authentication information of username for the CXF client.
|
void |
setWrapped(boolean wrapped)
Which kind of operation that CXF endpoint producer will invoke
|
void |
setWrappedStyle(Boolean wrapped)
The WSDL style that describes how parameters are represented in the SOAP body.
|
void |
setWsdlURL(String url)
The location of the WSDL.
|
protected void |
updateEndpointUri(String endpointUri) |
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doStart, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, finalize, getClass, notify, notifyAll, wait, wait, waitconfigureExchange, configureProperties, createAsyncProducer, createExchange, createExchange, createPollingConsumer, getCamelContext, getEndpointBaseUri, getEndpointKey, getEndpointUri, isLenientProperties, isSingletonProducer@UriParam(label="advanced") protected org.apache.cxf.Bus bus
protected volatile boolean createBus
public CxfEndpoint()
public CxfEndpoint(String remaining, CxfComponent cxfComponent)
public CxfEndpoint copy()
protected void updateEndpointUri(String endpointUri)
public org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
createConsumer in interface org.apache.camel.EndpointExceptionprotected void setupServerFactoryBean(org.apache.cxf.frontend.ServerFactoryBean sfb,
Class<?> cls)
protected org.apache.cxf.frontend.ClientFactoryBean createClientFactoryBean(Class<?> cls) throws org.apache.camel.CamelException
org.apache.camel.CamelExceptionprotected org.apache.cxf.frontend.ClientFactoryBean createClientFactoryBean()
protected void setupHandlers(org.apache.cxf.frontend.ClientFactoryBean factoryBean,
org.apache.cxf.endpoint.Client client)
throws Exception
Exceptionprotected void setupClientFactoryBean(org.apache.cxf.frontend.ClientFactoryBean factoryBean,
Class<?> cls)
public String getBeanId()
public void setBeanId(String beanId)
public DataFormat getDataFormat()
public void setDataFormat(DataFormat format)
public String getPublishedEndpointUrl()
public void setPublishedEndpointUrl(String url)
public String getWsdlURL()
public void setWsdlURL(String url)
public Class<?> getServiceClass()
public void setServiceClass(Class<?> cls)
public void setServiceClass(Object instance)
public void setServiceClass(String type) throws ClassNotFoundException
ClassNotFoundExceptionpublic void setServiceName(String service)
public String getServiceName()
public QName getServiceNameAsQName()
public void setServiceNameAsQName(QName qName)
public QName getPortNameAsQName()
public void setPortNameAsQName(QName qName)
public String getPortName()
public void setPortName(String port)
public void setEndpointName(String name)
public void setEndpointNameAsQName(QName qName)
public String getDefaultOperationName()
public void setDefaultOperationName(String name)
public String getDefaultOperationNamespace()
public void setDefaultOperationNamespace(String namespace)
public boolean isWrapped()
public void setWrapped(boolean wrapped)
public Boolean getWrappedStyle()
public void setWrappedStyle(Boolean wrapped)
public void setAllowStreaming(Boolean allowStreaming)
public Boolean getAllowStreaming()
public void setCxfBinding(CxfBinding cxfBinding)
public CxfBinding getCxfBinding()
public void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
setHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAwarepublic org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
getHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAwarepublic void setBus(org.apache.cxf.Bus bus)
public org.apache.cxf.Bus getBus()
public void setDefaultBus(boolean defaultBus)
public boolean isDefaultBus()
public void setLoggingFeatureEnabled(boolean loggingFeatureEnabled)
public boolean isLoggingFeatureEnabled()
public int getLoggingSizeLimit()
public void setLoggingSizeLimit(int loggingSizeLimit)
public boolean isSkipPayloadMessagePartCheck()
public void setSkipPayloadMessagePartCheck(boolean skipPayloadMessagePartCheck)
public void setCamelContext(org.apache.camel.CamelContext c)
setCamelContext in interface org.apache.camel.CamelContextAwaresetCamelContext in interface org.apache.camel.EndpointsetCamelContext in class org.apache.camel.support.DefaultEndpointpublic void setProperties(Map<String,Object> properties)
public org.apache.camel.http.base.cookie.CookieHandler getCookieHandler()
public void setCookieHandler(org.apache.camel.http.base.cookie.CookieHandler cookieHandler)
public boolean isSynchronous()
public void setSynchronous(boolean synchronous)
protected void doInit()
throws Exception
doInit in class org.apache.camel.support.DefaultEndpointExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultEndpointExceptionpublic void setAddress(String address)
public String getAddress()
public void setMtomEnabled(boolean mtomEnabled)
public boolean isMtomEnabled()
public String getPassword()
public void setPassword(String password)
public String getUsername()
public void setUsername(String username)
public CxfConfigurer getChainedCxfConfigurer()
public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getOutFaultInterceptors()
public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getInFaultInterceptors()
public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getInInterceptors()
public List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> getOutInterceptors()
public void setInInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
public void setInFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
public void setOutInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
public void setOutFaultInterceptors(List<org.apache.cxf.interceptor.Interceptor<? extends org.apache.cxf.message.Message>> interceptors)
public void setFeatures(List<org.apache.cxf.feature.Feature> f)
public List<org.apache.cxf.feature.Feature> getFeatures()
public String getTransportId()
public void setTransportId(String transportId)
public String getBindingId()
public void setBindingId(String bindingId)
public org.apache.cxf.binding.BindingConfiguration getBindingConfig()
public boolean isSkipFaultLogging()
public void setSkipFaultLogging(boolean skipFaultLogging)
public boolean isMergeProtocolHeaders()
public void setMergeProtocolHeaders(boolean mergeProtocolHeaders)
public void setBindingConfig(org.apache.cxf.binding.BindingConfiguration bindingConfig)
public org.apache.cxf.databinding.DataBinding getDataBinding()
public void setDataBinding(org.apache.cxf.databinding.DataBinding dataBinding)
public Object getServiceFactoryBean()
public void setServiceFactoryBean(Object serviceFactoryBean)
public void setServiceFactory(Object serviceFactoryBean)
public CxfConfigurer getCxfConfigurer()
public void setCxfConfigurer(CxfConfigurer configurer)
public long getContinuationTimeout()
public void setContinuationTimeout(long continuationTimeout)
public org.apache.camel.support.jsse.SSLContextParameters getSslContextParameters()
public void setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
public HostnameVerifier getHostnameVerifier()
public void setHostnameVerifier(HostnameVerifier hostnameVerifier)
Apache Camel