org.apache.camel.component.cxf
Class CxfEndpoint
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.cxf.CxfEndpoint
- All Implemented Interfaces:
- 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
- Direct Known Subclasses:
- CxfSpringEndpoint
public class CxfEndpoint
- extends org.apache.camel.impl.DefaultEndpoint
- implements org.apache.camel.spi.HeaderFilterStrategyAware, org.apache.camel.Service
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.
- Version:
- $Revision$
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
| Methods inherited from interface org.apache.camel.Service |
start, stop |
CxfEndpoint
public CxfEndpoint(String remaining,
CxfComponent cxfComponent)
CxfEndpoint
public CxfEndpoint(String remaining,
org.apache.camel.CamelContext context)
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.ClientProxyFactoryBean 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.
doGetBus
protected org.apache.cxf.Bus doGetBus()
setupClientFactoryBean
protected void setupClientFactoryBean(org.apache.cxf.frontend.ClientProxyFactoryBean factoryBean,
Class<?> cls)
- Populate a client factory bean
setupClientFactoryBean
protected void setupClientFactoryBean(org.apache.cxf.frontend.ClientFactoryBean factoryBean)
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 String getServiceClass()
setServiceClass
public void setServiceClass(String className)
setServiceClass
public void setServiceClass(Object instance)
setServiceName
public void setServiceName(String service)
getServiceName
public String getServiceName()
getPortName
public String getPortName()
setPortName
public void setPortName(String 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)
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()
getProperties
public Map<String,Object> getProperties()
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()
Apache CAMEL