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() |
protected org.apache.http.HttpResponse |
executeMethod(org.apache.http.client.methods.HttpRequestBase httpRequest,
org.apache.http.client.protocol.HttpClientContext httpClientContext)
Strategy when executing the method (calling the remote server).
|
HttpEndpoint |
getEndpoint() |
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) |
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 HttpEndpoint getEndpoint()
getEndpoint in interface org.apache.camel.EndpointAwaregetEndpoint in class org.apache.camel.impl.PollingConsumerSupportpublic 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)
protected org.apache.http.HttpResponse executeMethod(org.apache.http.client.methods.HttpRequestBase httpRequest,
org.apache.http.client.protocol.HttpClientContext httpClientContext)
throws IOException
httpRequest - the http Request to executeIOException - can be thrownpublic 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