org.apache.camel.component.cxf.jaxrs
Class CxfRsEndpoint
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.cxf.jaxrs.CxfRsEndpoint
- 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, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
- Direct Known Subclasses:
- CxfRsBlueprintEndpoint, CxfRsSpringEndpoint
public class CxfRsEndpoint
- extends org.apache.camel.impl.DefaultEndpoint
- implements org.apache.camel.spi.HeaderFilterStrategyAware, org.apache.camel.Service
|
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, isSynchronous, setCamelContext, 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
CxfRsEndpoint
@Deprecated
public CxfRsEndpoint(String endpointUri,
org.apache.camel.CamelContext camelContext)
- Deprecated.
CxfRsEndpoint
public CxfRsEndpoint(String endpointUri,
org.apache.camel.Component component)
updateEndpointUri
protected void updateEndpointUri(String endpointUri)
setParameters
public void setParameters(Map<String,String> param)
getParameters
public Map<String,String> getParameters()
setHttpClientAPI
public void setHttpClientAPI(boolean clientAPI)
isHttpClientAPI
public boolean isHttpClientAPI()
isLenientProperties
public boolean isLenientProperties()
- Specified by:
isLenientProperties in interface org.apache.camel.Endpoint- Overrides:
isLenientProperties in class org.apache.camel.impl.DefaultEndpoint
getHeaderFilterStrategy
public org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
- Specified by:
getHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAware
setHeaderFilterStrategy
public void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy strategy)
- Specified by:
setHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAware
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
createProducer
public org.apache.camel.Producer createProducer()
throws Exception
- Specified by:
createProducer in interface org.apache.camel.Endpoint
- Throws:
Exception
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton in interface org.apache.camel.IsSingleton
setBinding
public void setBinding(CxfRsBinding binding)
getBinding
public CxfRsBinding getBinding()
checkBeanType
protected void checkBeanType(Object object,
Class<?> clazz)
setupJAXRSServerFactoryBean
protected void setupJAXRSServerFactoryBean(org.apache.cxf.jaxrs.JAXRSServerFactoryBean sfb)
setupJAXRSClientFactoryBean
protected void setupJAXRSClientFactoryBean(org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean cfb,
String address)
newJAXRSServerFactoryBean
protected org.apache.cxf.jaxrs.JAXRSServerFactoryBean newJAXRSServerFactoryBean()
newJAXRSClientFactoryBean
protected org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean newJAXRSClientFactoryBean()
resolvePropertyPlaceholders
protected String resolvePropertyPlaceholders(String str)
createJAXRSServerFactoryBean
public org.apache.cxf.jaxrs.JAXRSServerFactoryBean createJAXRSServerFactoryBean()
createJAXRSClientFactoryBean
public org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean createJAXRSClientFactoryBean()
createJAXRSClientFactoryBean
public org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean createJAXRSClientFactoryBean(String address)
getResourceClasses
public List<Class<?>> getResourceClasses()
addResourceClass
public void addResourceClass(Class<?> resourceClass)
setResourceClasses
public void setResourceClasses(List<Class<?>> resourceClasses)
setResourceClasses
public void setResourceClasses(Class<?>... classes)
setAddress
public void setAddress(String address)
getAddress
public String getAddress()
isLoggingFeatureEnabled
public boolean isLoggingFeatureEnabled()
setLoggingFeatureEnabled
public void setLoggingFeatureEnabled(boolean loggingFeatureEnabled)
getLoggingSizeLimit
public int getLoggingSizeLimit()
setLoggingSizeLimit
public void setLoggingSizeLimit(int loggingSizeLimit)
isThrowExceptionOnFailure
public boolean isThrowExceptionOnFailure()
setThrowExceptionOnFailure
public void setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
setMaxClientCacheSize
public void setMaxClientCacheSize(int maxClientCacheSize)
- Parameters:
maxClientCacheSize - the maxClientCacheSize to set
getMaxClientCacheSize
public int getMaxClientCacheSize()
- Returns:
- the maxClientCacheSize
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()
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
Apache CAMEL