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, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, shutdown, start, stop |
CxfRsProducer
public CxfRsProducer(CxfRsEndpoint endpoint)
process
public void process(Exchange exchange)
throws Exception
- Throws:
Exception
invokeHttpClient
protected void invokeHttpClient(Exchange exchange)
throws Exception
- Throws:
Exception
invokeProxyClient
protected void invokeProxyClient(Exchange exchange)
throws Exception
- Throws:
Exception
Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.