org.apache.camel.component.cxf.jaxrs
Class CxfRsProducer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultProducer
org.apache.camel.component.cxf.jaxrs.CxfRsProducer
- All Implemented Interfaces:
- IsSingleton, Processor, Producer, Service, ShutdownableService
public class CxfRsProducer
- extends DefaultProducer
CxfRsProducer binds a Camel exchange to a CXF exchange, acts as a CXF
JAXRS client, it will turn the normal Object invocation to a RESTful request
according to resource annotation. Any response will be bound to Camel exchange.
| 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 |
CxfRsProducer
public CxfRsProducer(CxfRsEndpoint endpoint)
process
public void process(Exchange exchange)
throws Exception
- Description copied from interface:
Processor
- Processes the message exchange
- Parameters:
exchange - the message exchange
- Throws:
Exception - if an internal processing error has occurred.
invokeHttpClient
protected void invokeHttpClient(Exchange exchange)
throws Exception
- Throws:
Exception
invokeProxyClient
protected void invokeProxyClient(Exchange exchange)
throws Exception
- Throws:
Exception
Apache CAMEL