@UriEndpoint(scheme="http4,http4s",
title="HTTP4,HTTP4S",
syntax="http4:httpUri",
producerOnly=true,
label="http")
public class HttpEndpoint
extends org.apache.camel.http.common.HttpCommonEndpoint
Constructor and Description |
---|
HttpEndpoint() |
HttpEndpoint(String endPointURI,
HttpComponent component,
org.apache.http.impl.client.HttpClientBuilder clientBuilder,
org.apache.http.conn.HttpClientConnectionManager clientConnectionManager,
HttpClientConfigurer clientConfigurer) |
HttpEndpoint(String endPointURI,
HttpComponent component,
URI httpURI) |
HttpEndpoint(String endPointURI,
HttpComponent component,
URI httpURI,
org.apache.http.impl.client.HttpClientBuilder clientBuilder,
org.apache.http.conn.HttpClientConnectionManager clientConnectionManager,
HttpClientConfigurer clientConfigurer) |
HttpEndpoint(String endPointURI,
HttpComponent component,
URI httpURI,
org.apache.http.conn.HttpClientConnectionManager clientConnectionManager) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
protected org.apache.http.client.HttpClient |
createHttpClient()
Factory method to create a new
HttpClient instance
Producers and consumers should use the getHttpClient() method instead. |
org.apache.camel.PollingConsumer |
createPollingConsumer() |
org.apache.camel.Producer |
createProducer() |
protected void |
doStop() |
org.apache.http.impl.client.HttpClientBuilder |
getClientBuilder()
Provide access to the http client request parameters used on new
RequestConfig instances
used by producers or consumers of this endpoint. |
org.apache.http.conn.HttpClientConnectionManager |
getClientConnectionManager() |
HttpComponent |
getComponent() |
org.apache.http.client.CookieStore |
getCookieStore() |
org.apache.http.client.HttpClient |
getHttpClient()
Gets the HttpClient to be used by
HttpProducer |
HttpClientConfigurer |
getHttpClientConfigurer() |
org.apache.http.protocol.HttpContext |
getHttpContext() |
boolean |
isAuthenticationPreemptive() |
boolean |
isClearExpiredCookies() |
void |
setAuthenticationPreemptive(boolean authenticationPreemptive)
If this option is true, camel-http4 sends preemptive basic authentication to the server.
|
void |
setClearExpiredCookies(boolean clearExpiredCookies)
Whether to clear expired cookies before sending the HTTP request.
|
void |
setClientBuilder(org.apache.http.impl.client.HttpClientBuilder clientBuilder)
Provide access to the http client request parameters used on new
RequestConfig instances
used by producers or consumers of this endpoint. |
void |
setClientConnectionManager(org.apache.http.conn.HttpClientConnectionManager clientConnectionManager)
To use a custom HttpClientConnectionManager to manage connections
|
void |
setCookieStore(org.apache.http.client.CookieStore cookieStore)
To use a custom org.apache.http.client.CookieStore.
|
void |
setHttpClient(org.apache.http.client.HttpClient httpClient) |
void |
setHttpClientConfigurer(HttpClientConfigurer httpClientConfigurer)
Register a custom configuration strategy for new
HttpClient instances
created by producers or consumers such as to configure authentication mechanisms etc |
void |
setHttpContext(org.apache.http.protocol.HttpContext httpContext) |
connect, disconnect, getAuthMethodPriority, getBinding, getHeaderFilterStrategy, getHttpMethodRestrict, getHttpUri, getOkStatusCodeRange, getPath, getPort, getProtocol, getProxyHost, getProxyPort, getResponseBufferSize, getUrlRewrite, isBridgeEndpoint, isChunked, isCopyHeaders, isDisableStreamCache, isEagerCheckContentAvailable, isIgnoreResponseBody, isLenientProperties, isMatchOnUriPrefix, isSingleton, isThrowExceptionOnFailure, isTraceEnabled, isTransferException, setAuthMethodPriority, setBinding, setBridgeEndpoint, setChunked, setCopyHeaders, setDisableStreamCache, setEagerCheckContentAvailable, setHeaderFilterStrategy, setHttpMethodRestrict, setHttpUri, setIgnoreResponseBody, setMatchOnUriPrefix, setOkStatusCodeRange, setProxyHost, setProxyPort, setResponseBufferSize, setThrowExceptionOnFailure, setTraceEnabled, setTransferException, setUrlRewrite
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, doStart, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public HttpEndpoint()
public HttpEndpoint(String endPointURI, HttpComponent component, URI httpURI) throws URISyntaxException
URISyntaxException
public HttpEndpoint(String endPointURI, HttpComponent component, URI httpURI, org.apache.http.conn.HttpClientConnectionManager clientConnectionManager) throws URISyntaxException
URISyntaxException
public HttpEndpoint(String endPointURI, HttpComponent component, org.apache.http.impl.client.HttpClientBuilder clientBuilder, org.apache.http.conn.HttpClientConnectionManager clientConnectionManager, HttpClientConfigurer clientConfigurer) throws URISyntaxException
URISyntaxException
public HttpEndpoint(String endPointURI, HttpComponent component, URI httpURI, org.apache.http.impl.client.HttpClientBuilder clientBuilder, org.apache.http.conn.HttpClientConnectionManager clientConnectionManager, HttpClientConfigurer clientConfigurer) throws URISyntaxException
URISyntaxException
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
Exception
public org.apache.camel.PollingConsumer createPollingConsumer() throws Exception
createPollingConsumer
in interface org.apache.camel.Endpoint
createPollingConsumer
in class org.apache.camel.impl.DefaultEndpoint
Exception
public org.apache.http.client.HttpClient getHttpClient()
HttpProducer
public void setHttpClient(org.apache.http.client.HttpClient httpClient)
protected org.apache.http.client.HttpClient createHttpClient()
HttpClient
instance
Producers and consumers should use the getHttpClient()
method instead.public HttpComponent getComponent()
getComponent
in class org.apache.camel.http.common.HttpCommonEndpoint
protected void doStop() throws Exception
doStop
in class org.apache.camel.impl.DefaultEndpoint
Exception
public org.apache.http.impl.client.HttpClientBuilder getClientBuilder()
RequestConfig
instances
used by producers or consumers of this endpoint.public void setClientBuilder(org.apache.http.impl.client.HttpClientBuilder clientBuilder)
RequestConfig
instances
used by producers or consumers of this endpoint.public HttpClientConfigurer getHttpClientConfigurer()
public org.apache.http.protocol.HttpContext getHttpContext()
public void setHttpClientConfigurer(HttpClientConfigurer httpClientConfigurer)
HttpClient
instances
created by producers or consumers such as to configure authentication mechanisms etcpublic void setHttpContext(org.apache.http.protocol.HttpContext httpContext)
public org.apache.http.conn.HttpClientConnectionManager getClientConnectionManager()
public void setClientConnectionManager(org.apache.http.conn.HttpClientConnectionManager clientConnectionManager)
public boolean isClearExpiredCookies()
public void setClearExpiredCookies(boolean clearExpiredCookies)
public org.apache.http.client.CookieStore getCookieStore()
public void setCookieStore(org.apache.http.client.CookieStore cookieStore)
public boolean isAuthenticationPreemptive()
public void setAuthenticationPreemptive(boolean authenticationPreemptive)
Apache Camel