@UriEndpoint(firstVersion="1.0.0",
scheme="http,https",
title="HTTP,HTTPS",
syntax="http: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.commons.httpclient.params.HttpClientParams clientParams,
org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager,
HttpClientConfigurer clientConfigurer) |
HttpEndpoint(String endPointURI,
HttpComponent component,
URI httpURI) |
HttpEndpoint(String endPointURI,
HttpComponent component,
URI httpURI,
org.apache.commons.httpclient.params.HttpClientParams clientParams,
org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager,
HttpClientConfigurer clientConfigurer) |
HttpEndpoint(String endPointURI,
HttpComponent component,
URI httpURI,
org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.commons.httpclient.HttpClient |
createHttpClient()
Factory method used by producers and consumers to create a new
HttpClient instance |
org.apache.camel.PollingConsumer |
createPollingConsumer() |
org.apache.camel.Producer |
createProducer() |
org.apache.commons.httpclient.params.HttpClientParams |
getClientParams()
Provide access to the client parameters used on new
HttpClient instances
used by producers or consumers of this endpoint. |
HttpClientConfigurer |
getHttpClientConfigurer() |
Map<String,Object> |
getHttpClientOptions() |
org.apache.commons.httpclient.HttpConnectionManager |
getHttpConnectionManager() |
Map<String,Object> |
getHttpConnectionManagerOptions() |
void |
setClientParams(org.apache.commons.httpclient.params.HttpClientParams clientParams)
Provide access to the client parameters used on new
HttpClient instances
used by producers or consumers of this endpoint. |
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 |
setHttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager)
To use a custom HttpConnectionManager to manage connections
|
void |
setHttpConnectionManagerOptions(Map<String,Object> httpConnectionManagerOptions)
To configure the HttpConnectionManager using the key/values from the Map.
|
connect, disconnect, getAuthDomain, getAuthHost, getAuthMethod, getAuthMethodPriority, getAuthPassword, getAuthUsername, getBinding, getComponent, getCookieHandler, getHeaderFilterStrategy, getHttpBinding, getHttpMethod, getHttpMethodRestrict, getHttpUri, getOkStatusCodeRange, getPath, getPort, getProtocol, getProxyAuthDomain, getProxyAuthHost, getProxyAuthMethod, getProxyAuthPassword, getProxyAuthPort, getProxyAuthScheme, getProxyAuthUsername, getProxyHost, getProxyPort, getResponseBufferSize, getServiceProperties, getUrlRewrite, isAsync, isBridgeEndpoint, isChunked, isConnectionClose, isCopyHeaders, isDisableStreamCache, isEagerCheckContentAvailable, isIgnoreResponseBody, isLenientProperties, isMapHttpMessageBody, isMapHttpMessageFormUrlEncodedBody, isMapHttpMessageHeaders, isMatchOnUriPrefix, isOptionsEnabled, isPreserveHostHeader, isSingleton, isThrowExceptionOnFailure, isTraceEnabled, isTransferException, setAsync, setAuthDomain, setAuthHost, setAuthMethod, setAuthMethodPriority, setAuthPassword, setAuthUsername, setBinding, setBridgeEndpoint, setChunked, setConnectionClose, setCookieHandler, setCopyHeaders, setDisableStreamCache, setEagerCheckContentAvailable, setHeaderFilterStrategy, setHttpBinding, setHttpMethod, setHttpMethodRestrict, setHttpUri, setIgnoreResponseBody, setMapHttpMessageBody, setMapHttpMessageFormUrlEncodedBody, setMapHttpMessageHeaders, setMatchOnUriPrefix, setOkStatusCodeRange, setOptionsEnabled, setPreserveHostHeader, setProxyAuthDomain, setProxyAuthHost, setProxyAuthMethod, setProxyAuthPassword, setProxyAuthPort, setProxyAuthScheme, setProxyAuthUsername, setProxyHost, setProxyPort, setResponseBufferSize, setThrowExceptionOnFailure, setTraceEnabled, setTransferException, setUrlRewrite
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, doStart, doStop, 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, 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.commons.httpclient.HttpConnectionManager httpConnectionManager) throws URISyntaxException
URISyntaxException
public HttpEndpoint(String endPointURI, HttpComponent component, org.apache.commons.httpclient.params.HttpClientParams clientParams, org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager, HttpClientConfigurer clientConfigurer) throws URISyntaxException
URISyntaxException
public HttpEndpoint(String endPointURI, HttpComponent component, URI httpURI, org.apache.commons.httpclient.params.HttpClientParams clientParams, org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager, 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.commons.httpclient.HttpClient createHttpClient()
HttpClient
instancepublic org.apache.commons.httpclient.params.HttpClientParams getClientParams()
HttpClient
instances
used by producers or consumers of this endpoint.public void setClientParams(org.apache.commons.httpclient.params.HttpClientParams clientParams)
HttpClient
instances
used by producers or consumers of this endpoint.public HttpClientConfigurer getHttpClientConfigurer()
public void setHttpClientConfigurer(HttpClientConfigurer httpClientConfigurer)
HttpClient
instances
created by producers or consumers such as to configure authentication mechanisms etchttpClientConfigurer
- the strategy for configuring new HttpClient
instancespublic org.apache.commons.httpclient.HttpConnectionManager getHttpConnectionManager()
public void setHttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager)
public void setHttpClientOptions(Map<String,Object> httpClientOptions)
Apache Camel