@UriEndpoint(scheme="http4,http4s",
title="HTTP4,HTTP4S",
syntax="http4:httpUri",
producerOnly=true,
label="http",
lenientProperties=true)
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() |
Map<String,Object> |
getHttpClientOptions() |
org.apache.http.protocol.HttpContext |
getHttpContext() |
boolean |
isAuthenticationPreemptive() |
boolean |
isClearExpiredCookies() |
boolean |
isDeleteWithBody() |
boolean |
isUseSystemProperties() |
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 |
setDeleteWithBody(boolean deleteWithBody)
Whether the HTTP DELETE should include the message body or not.
|
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 |
setHttpClientOptions(Map<String,Object> httpClientOptions)
To configure the HttpClient using the key/values from the Map.
|
void |
setHttpContext(org.apache.http.protocol.HttpContext httpContext)
To use a custom HttpContext instance
|
void |
setUseSystemProperties(boolean useSystemProperties)
To use System Properties as fallback for configuration
|
canConnect, connect, disconnect, getAuthMethodPriority, getBinding, getHeaderFilterStrategy, getHttpBinding, getHttpMethodRestrict, getHttpUri, getOkStatusCodeRange, getPath, getPort, getProtocol, getProxyHost, getProxyPort, getResponseBufferSize, getUrlRewrite, isBridgeEndpoint, isChunked, isConnectionClose, isCopyHeaders, isDisableStreamCache, isEagerCheckContentAvailable, isIgnoreResponseBody, isLenientProperties, isMapHttpMessageBody, isMapHttpMessageHeaders, isMatchOnUriPrefix, isOptionsEnabled, isPreserveHostHeader, isSingleton, isThrowExceptionOnFailure, isTraceEnabled, isTransferException, setAuthMethodPriority, setBinding, setBridgeEndpoint, setChunked, setConnectionClose, setCopyHeaders, setDisableStreamCache, setEagerCheckContentAvailable, setHeaderFilterStrategy, setHttpBinding, setHttpMethodRestrict, setHttpUri, setIgnoreResponseBody, setMapHttpMessageBody, setMapHttpMessageHeaders, setMatchOnUriPrefix, setOkStatusCodeRange, setOptionsEnabled, setPreserveHostHeader, setProxyHost, setProxyPort, setResponseBufferSize, setThrowExceptionOnFailure, setTraceEnabled, setTransferException, setUrlRewriteconfigureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, doStart, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isBridgeErrorHandler, isPollingConsumerBlockWhenFull, isSynchronous, setBridgeErrorHandler, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic HttpEndpoint()
public HttpEndpoint(String endPointURI, HttpComponent component, URI httpURI) throws URISyntaxException
URISyntaxExceptionpublic HttpEndpoint(String endPointURI, HttpComponent component, URI httpURI, org.apache.http.conn.HttpClientConnectionManager clientConnectionManager) throws URISyntaxException
URISyntaxExceptionpublic HttpEndpoint(String endPointURI, HttpComponent component, org.apache.http.impl.client.HttpClientBuilder clientBuilder, org.apache.http.conn.HttpClientConnectionManager clientConnectionManager, HttpClientConfigurer clientConfigurer) throws URISyntaxException
URISyntaxExceptionpublic HttpEndpoint(String endPointURI, HttpComponent component, URI httpURI, org.apache.http.impl.client.HttpClientBuilder clientBuilder, org.apache.http.conn.HttpClientConnectionManager clientConnectionManager, HttpClientConfigurer clientConfigurer) throws URISyntaxException
URISyntaxExceptionpublic org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
Exceptionpublic org.apache.camel.PollingConsumer createPollingConsumer()
throws Exception
createPollingConsumer in interface org.apache.camel.EndpointcreatePollingConsumer in class org.apache.camel.impl.DefaultEndpointExceptionpublic org.apache.http.client.HttpClient getHttpClient()
HttpProducerpublic 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.HttpCommonEndpointprotected void doStop()
throws Exception
doStop in class org.apache.camel.impl.DefaultEndpointExceptionpublic 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 boolean isDeleteWithBody()
public void setDeleteWithBody(boolean deleteWithBody)
public org.apache.http.client.CookieStore getCookieStore()
public void setCookieStore(org.apache.http.client.CookieStore cookieStore)
public boolean isAuthenticationPreemptive()
public void setAuthenticationPreemptive(boolean authenticationPreemptive)
public void setHttpClientOptions(Map<String,Object> httpClientOptions)
public boolean isUseSystemProperties()
public void setUseSystemProperties(boolean useSystemProperties)
Apache Camel