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

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultProducer
          extended by org.apache.camel.component.cxf.jaxrs.CxfRsProducer
All Implemented Interfaces:
IsSingleton, Processor, Producer, Service

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.


Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultProducer
log
 
Constructor Summary
CxfRsProducer(CxfRsEndpoint endpoint)
           
 
Method Summary
protected  void invokeHttpClient(Exchange exchange)
           
protected  void invokeProxyClient(Exchange exchange)
           
 void process(Exchange exchange)
          Processes the message exchange
 
Methods inherited from class org.apache.camel.impl.DefaultProducer
createExchange, createExchange, createExchange, doStart, doStop, getEndpoint, isSingleton, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

CxfRsProducer

public CxfRsProducer(CxfRsEndpoint endpoint)
Method Detail

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


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.