public class HttpPollingConsumer
extends org.apache.camel.impl.PollingConsumerSupport
| Constructor and Description |
|---|
HttpPollingConsumer(HttpEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
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) |
getEndpoint, getExceptionHandler, handleException, setExceptionHandler, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspendpublic HttpPollingConsumer(HttpEndpoint endpoint)
public org.apache.camel.Exchange receive()
public org.apache.camel.Exchange receive(long timeout)
public org.apache.camel.Exchange receiveNoWait()
protected org.apache.camel.Exchange doReceive(int timeout)
public org.apache.http.client.HttpClient getHttpClient()
public void setHttpClient(org.apache.http.client.HttpClient httpClient)
protected org.apache.http.client.methods.HttpRequestBase createMethod(org.apache.camel.Exchange exchange)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.ServiceSupportExceptionApache Camel