org.apache.camel.component.http
Class HttpPollingConsumer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.PollingConsumerSupport<HttpExchange>
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 $
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, removeChildService, start, stop |
HttpPollingConsumer
public HttpPollingConsumer(HttpEndpoint endpoint)
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