org.apache.camel.component.cxf.jaxrs
Class CxfRsEndpoint

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by 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
Direct Known Subclasses:
CxfRsSpringEndpoint

public class CxfRsEndpoint
extends org.apache.camel.impl.DefaultEndpoint
implements org.apache.camel.spi.HeaderFilterStrategyAware


Constructor Summary
CxfRsEndpoint(String endpointUri, org.apache.camel.CamelContext camelContext)
           
CxfRsEndpoint(String endpointUri, org.apache.camel.Component component)
           
 
Method Summary
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
           
 org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean createJAXRSClientFactoryBean()
           
 org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean createJAXRSClientFactoryBean(String address)
           
 org.apache.cxf.jaxrs.JAXRSServerFactoryBean createJAXRSServerFactoryBean()
           
 org.apache.camel.Producer createProducer()
           
 String getAddress()
           
 CxfRsBinding getBinding()
           
 org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
           
 int getMaxClientCacheSize()
           
 Map<String,String> getParameters()
           
 List<Class<?>> getResourceClasses()
           
 boolean isHttpClientAPI()
           
 boolean isLenientProperties()
           
 boolean isSingleton()
           
 boolean isThrowExceptionOnFailure()
           
 void setAddress(String address)
           
 void setBinding(CxfRsBinding binding)
           
 void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy strategy)
           
 void setHttpClientAPI(boolean clientAPI)
           
 void setMaxClientCacheSize(int maxClientCacheSize)
           
 void setParameters(Map<String,String> param)
           
 void setResourceClasses(Class<?>... classes)
           
 void setResourceClasses(List<Class<?>> classes)
           
 void setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
           
protected  void setupJAXRSClientFactoryBean(org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean cfb, String address)
           
protected  void setupJAXRSServerFactoryBean(org.apache.cxf.jaxrs.JAXRSServerFactoryBean sfb)
           
protected  void updateEndpointUri(String endpointUri)
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureProperties, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

CxfRsEndpoint

public CxfRsEndpoint(String endpointUri,
                     org.apache.camel.CamelContext camelContext)

CxfRsEndpoint

public CxfRsEndpoint(String endpointUri,
                     org.apache.camel.Component component)
Method Detail

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()

setupJAXRSServerFactoryBean

protected void setupJAXRSServerFactoryBean(org.apache.cxf.jaxrs.JAXRSServerFactoryBean sfb)

setupJAXRSClientFactoryBean

protected void setupJAXRSClientFactoryBean(org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean cfb,
                                           String address)

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()

setResourceClasses

public void setResourceClasses(List<Class<?>> classes)

setResourceClasses

public void setResourceClasses(Class<?>... classes)

setAddress

public void setAddress(String address)

getAddress

public String getAddress()

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


Apache CAMEL