public class HttpPollingConsumer
extends org.apache.camel.impl.PollingConsumerSupport
implements org.apache.camel.ServicePoolAware
| 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, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic HttpPollingConsumer(HttpEndpoint endpoint)
public org.apache.camel.Exchange receive()
receive in interface org.apache.camel.PollingConsumerpublic org.apache.camel.Exchange receive(long timeout)
receive in interface org.apache.camel.PollingConsumerpublic org.apache.camel.Exchange receiveNoWait()
receiveNoWait in interface org.apache.camel.PollingConsumerprotected 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