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 java.lang.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(java.lang.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(java.lang.String httpUrl)
Method Detail

process

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



Copyright © 2010 OW2 Consortium. All Rights Reserved.
Apache Camel version 2.3.0, OW2 JOnAS version 5.2.0-M2-SR1