org.apache.camel.component.http
Class HttpPollingConsumer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.PollingConsumerSupport<HttpExchange>
          extended by org.apache.camel.component.http.HttpPollingConsumer
All Implemented Interfaces:
Consumer<HttpExchange>, PollingConsumer<HttpExchange>, Service

public class HttpPollingConsumer
extends PollingConsumerSupport<HttpExchange>

A polling HTTP consumer which by default performs a GET

Version:
$Revision: 682597 $

Constructor Summary
HttpPollingConsumer(HttpEndpoint endpoint)
           
 
Method Summary
protected  org.apache.commons.httpclient.HttpMethod createMethod()
           
protected  void doStart()
           
protected  void doStop()
           
 org.apache.commons.httpclient.HttpClient getHttpClient()
           
 HttpExchange receive()
           
 HttpExchange receive(long timeout)
           
 HttpExchange receiveNoWait()
           
 void setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)
           
 
Methods inherited from class org.apache.camel.impl.PollingConsumerSupport
getEndpoint, getExceptionHandler, handleException, setExceptionHandler, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, 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

HttpPollingConsumer

public HttpPollingConsumer(HttpEndpoint endpoint)
Method Detail

receive

public HttpExchange receive()

receive

public HttpExchange receive(long timeout)

receiveNoWait

public HttpExchange receiveNoWait()

getHttpClient

public org.apache.commons.httpclient.HttpClient getHttpClient()

setHttpClient

public void setHttpClient(org.apache.commons.httpclient.HttpClient httpClient)

createMethod

protected org.apache.commons.httpclient.HttpMethod createMethod()

doStart

protected void doStart()
                throws Exception
Specified by:
doStart in class ServiceSupport
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Specified by:
doStop in class ServiceSupport
Throws:
Exception


Apache CAMEL