org.apache.camel.component.http4
Class HttpPollingConsumer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.PollingConsumerSupport
          extended by org.apache.camel.component.http4.HttpPollingConsumer
All Implemented Interfaces:
Consumer, PollingConsumer, Service, ShutdownableService

public class HttpPollingConsumer
extends PollingConsumerSupport

A polling HTTP consumer which by default performs a GET

Version:
$Revision: 1053065 $

Field Summary
 
Fields inherited from class org.apache.camel.impl.PollingConsumerSupport
log
 
Constructor Summary
HttpPollingConsumer(HttpEndpoint endpoint)
           
 
Method Summary
protected  org.apache.http.client.methods.HttpRequestBase createMethod()
           
protected  Exchange doReceive(int timeout)
           
protected  void doStart()
           
protected  void doStop()
           
 org.apache.http.client.HttpClient getHttpClient()
           
 Exchange receive()
           
 Exchange receive(long timeout)
           
 Exchange receiveNoWait()
           
 void setHttpClient(org.apache.http.client.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, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
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 Exchange receive()

receive

public Exchange receive(long timeout)

receiveNoWait

public Exchange receiveNoWait()

doReceive

protected Exchange doReceive(int timeout)

getHttpClient

public org.apache.http.client.HttpClient getHttpClient()

setHttpClient

public void setHttpClient(org.apache.http.client.HttpClient httpClient)

createMethod

protected org.apache.http.client.methods.HttpRequestBase 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