@UriEndpoint(scheme="http",
consumerClass=HttpConsumer.class)
public class HttpEndpoint
extends org.apache.camel.impl.DefaultPollingEndpoint
implements org.apache.camel.spi.HeaderFilterStrategyAware
| 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 |
|---|---|
void |
connect(HttpConsumer consumer) |
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() |
void |
disconnect(HttpConsumer consumer) |
String |
getAuthMethodPriority() |
HttpBinding |
getBinding() |
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. |
org.apache.camel.spi.HeaderFilterStrategy |
getHeaderFilterStrategy() |
HttpClientConfigurer |
getHttpClientConfigurer() |
org.apache.commons.httpclient.HttpConnectionManager |
getHttpConnectionManager() |
String |
getHttpMethodRestrict() |
URI |
getHttpUri() |
String |
getPath() |
int |
getPort() |
String |
getProtocol() |
String |
getProxyHost() |
int |
getProxyPort() |
Integer |
getResponseBufferSize() |
UrlRewrite |
getUrlRewrite() |
boolean |
isBridgeEndpoint() |
boolean |
isChunked() |
boolean |
isDisableStreamCache() |
boolean |
isLenientProperties() |
boolean |
isMatchOnUriPrefix() |
boolean |
isSingleton() |
boolean |
isThrowExceptionOnFailure() |
boolean |
isTraceEnabled() |
boolean |
isTransferException() |
void |
setAuthMethodPriority(String authMethodPriority) |
void |
setBinding(HttpBinding binding) |
void |
setBridgeEndpoint(boolean bridge) |
void |
setChunked(boolean chunked) |
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 |
setDisableStreamCache(boolean disable) |
void |
setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy) |
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 |
setHttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager) |
void |
setHttpMethodRestrict(String httpMethodRestrict) |
void |
setHttpUri(URI httpUri) |
void |
setMatchOnUriPrefix(boolean match) |
void |
setProxyHost(String proxyHost) |
void |
setProxyPort(int proxyPort) |
void |
setResponseBufferSize(Integer responseBufferSize) |
void |
setThrowExceptionOnFailure(boolean throwExceptionOnFailure) |
void |
setTraceEnabled(boolean traceEnabled) |
void |
setTransferException(boolean transferException) |
void |
setUrlRewrite(UrlRewrite urlRewrite) |
configurePollingConsumer, configureProperties, configureScheduledPollConsumerPropertiesconfigureConsumer, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, 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.commons.httpclient.HttpConnectionManager httpConnectionManager) throws URISyntaxException
URISyntaxExceptionpublic HttpEndpoint(String endPointURI, HttpComponent component, org.apache.commons.httpclient.params.HttpClientParams clientParams, org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager, HttpClientConfigurer clientConfigurer) throws URISyntaxException
URISyntaxExceptionpublic HttpEndpoint(String endPointURI, HttpComponent component, URI httpURI, org.apache.commons.httpclient.params.HttpClientParams clientParams, org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager, HttpClientConfigurer clientConfigurer) throws URISyntaxException
URISyntaxExceptionpublic org.apache.camel.Producer createProducer()
throws Exception
createProducer in interface org.apache.camel.EndpointExceptionpublic org.apache.camel.PollingConsumer createPollingConsumer()
throws Exception
createPollingConsumer in interface org.apache.camel.EndpointcreatePollingConsumer in class org.apache.camel.impl.DefaultEndpointExceptionpublic org.apache.commons.httpclient.HttpClient createHttpClient()
HttpClient instancepublic void connect(HttpConsumer consumer) throws Exception
Exceptionpublic void disconnect(HttpConsumer consumer) throws Exception
Exceptionpublic boolean isLenientProperties()
isLenientProperties in interface org.apache.camel.EndpointisLenientProperties in class org.apache.camel.impl.DefaultEndpointpublic boolean isSingleton()
isSingleton in interface org.apache.camel.IsSingletonpublic 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 HttpBinding getBinding()
public void setBinding(HttpBinding binding)
public String getPath()
public int getPort()
public String getProtocol()
public URI getHttpUri()
public void setHttpUri(URI httpUri)
public org.apache.commons.httpclient.HttpConnectionManager getHttpConnectionManager()
public void setHttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager)
public org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
getHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAwarepublic void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
setHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAwarepublic boolean isThrowExceptionOnFailure()
public void setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
public boolean isBridgeEndpoint()
public void setBridgeEndpoint(boolean bridge)
public boolean isMatchOnUriPrefix()
public void setMatchOnUriPrefix(boolean match)
public boolean isDisableStreamCache()
public void setDisableStreamCache(boolean disable)
public boolean isChunked()
public void setChunked(boolean chunked)
public String getProxyHost()
public void setProxyHost(String proxyHost)
public int getProxyPort()
public void setProxyPort(int proxyPort)
public String getAuthMethodPriority()
public void setAuthMethodPriority(String authMethodPriority)
public boolean isTransferException()
public void setTransferException(boolean transferException)
public boolean isTraceEnabled()
public void setTraceEnabled(boolean traceEnabled)
public String getHttpMethodRestrict()
public void setHttpMethodRestrict(String httpMethodRestrict)
public UrlRewrite getUrlRewrite()
public void setUrlRewrite(UrlRewrite urlRewrite)
public Integer getResponseBufferSize()
public void setResponseBufferSize(Integer responseBufferSize)
Apache Camel