public class HttpPollingConsumer
extends org.apache.camel.support.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() |
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, getProcessor, handleException, setExceptionHandler, toString
build, doBuild, doInit, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public HttpPollingConsumer(HttpEndpoint endpoint)
public HttpEndpoint getEndpoint()
getEndpoint
in interface org.apache.camel.EndpointAware
getEndpoint
in class org.apache.camel.support.PollingConsumerSupport
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)
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.service.ServiceSupport
Exception
Apache Camel