org.apache.camel.component.http4
Class HttpPollingConsumer
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.PollingConsumerSupport
org.apache.camel.component.http4.HttpPollingConsumer
- All Implemented Interfaces:
- org.apache.camel.Consumer, org.apache.camel.PollingConsumer, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
public class HttpPollingConsumer
- extends org.apache.camel.impl.PollingConsumerSupport
A polling HTTP consumer which by default performs a GET
- Version:
Fields inherited from class org.apache.camel.impl.PollingConsumerSupport |
log |
Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Method Summary |
protected org.apache.http.client.methods.HttpRequestBase |
createMethod(org.apache.camel.Exchange exchange)
|
protected org.apache.camel.Exchange |
doReceive(int timeout)
|
protected void |
doStart()
|
protected void |
doStop()
|
org.apache.http.client.HttpClient |
getHttpClient()
|
org.apache.camel.Exchange |
receive()
|
org.apache.camel.Exchange |
receive(long timeout)
|
org.apache.camel.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.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from interface org.apache.camel.Service |
start, stop |
HttpPollingConsumer
public HttpPollingConsumer(HttpEndpoint endpoint)
receive
public org.apache.camel.Exchange receive()
receive
public org.apache.camel.Exchange receive(long timeout)
receiveNoWait
public org.apache.camel.Exchange receiveNoWait()
doReceive
protected org.apache.camel.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(org.apache.camel.Exchange exchange)
doStart
protected void doStart()
throws Exception
- Specified by:
doStart
in class org.apache.camel.support.ServiceSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Specified by:
doStop
in class org.apache.camel.support.ServiceSupport
- Throws:
Exception
Apache CAMEL