org.ow2.jonas.camel.component
Class HttpClientProcessor

java.lang.Object
  extended by org.ow2.jonas.camel.component.HttpClientProcessor
All Implemented Interfaces:
org.apache.camel.Processor

public class HttpClientProcessor
extends Object
implements org.apache.camel.Processor

HTTP client processor, which can replace the CAMEL http processor. We need this processor as camel-http has some weird dependencies, most notably and old version of HTTPClient, which doesn't behave well with OSGi environments.

It does simple HTTP GET requests and adds all CAMEL headers to the GET request's arguments.

It is used exactly as any other processor:


Constructor Summary
HttpClientProcessor(String httpUrl)
           
 
Method Summary
 void process(org.apache.camel.Exchange exchange)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpClientProcessor

public HttpClientProcessor(String httpUrl)
Method Detail

process

public void process(org.apache.camel.Exchange exchange)
             throws Exception
Specified by:
process in interface org.apache.camel.Processor
Throws:
Exception


Copyright © 2011 OW2 Consortium. All Rights Reserved.