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

java.lang.Object
  extended by org.apache.camel.support.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, 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
 
Constructor Summary
CxfRsEndpoint(String endpointUri, org.apache.camel.CamelContext camelContext)
          Deprecated. 
CxfRsEndpoint(String endpointUri, org.apache.camel.Component component)
           
 
Method Summary
 void addResourceClass(Class<?> resourceClass)
           
protected  void checkBeanType(Object object, Class<?> clazz)
           
 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()
           
protected  void doStart()
           
protected  void doStop()
           
 String getAddress()
           
 CxfRsBinding getBinding()
           
 org.apache.cxf.Bus getBus()
           
 org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
           
 int getLoggingSizeLimit()
           
 int getMaxClientCacheSize()
           
 Map<String,String> getParameters()
           
 List<Class<?>> getResourceClasses()
           
 boolean isHttpClientAPI()
           
 boolean isLenientProperties()
           
 boolean isLoggingFeatureEnabled()
           
 boolean isSetDefaultBus()
           
 boolean isSingleton()
           
 boolean isThrowExceptionOnFailure()
           
protected  org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean newJAXRSClientFactoryBean()
           
protected  org.apache.cxf.jaxrs.JAXRSServerFactoryBean newJAXRSServerFactoryBean()
           
protected  String resolvePropertyPlaceholders(String str)
           
 void setAddress(String address)
           
 void setBinding(CxfRsBinding binding)
           
 void setBus(org.apache.cxf.Bus bus)
           
 void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy strategy)
           
 void setHttpClientAPI(boolean clientAPI)
           
 void setLoggingFeatureEnabled(boolean loggingFeatureEnabled)
           
 void setLoggingSizeLimit(int loggingSizeLimit)
           
 void setMaxClientCacheSize(int maxClientCacheSize)
           
 void setParameters(Map<String,String> param)
           
 void setResourceClasses(Class<?>... classes)
           
 void setResourceClasses(List<Class<?>> resourceClasses)
           
 void setSetDefaultBus(boolean isSetDefaultBus)
           
 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
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Field Detail

bus

protected org.apache.cxf.Bus bus
Constructor Detail

CxfRsEndpoint

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


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

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