@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, configureScheduledPollConsumerProperties
configureConsumer, 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, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, 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.Producer createProducer() throws Exception
createProducer
in interface org.apache.camel.Endpoint
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 void connect(HttpConsumer consumer) throws Exception
Exception
public void disconnect(HttpConsumer consumer) throws Exception
Exception
public boolean isLenientProperties()
isLenientProperties
in interface org.apache.camel.Endpoint
isLenientProperties
in class org.apache.camel.impl.DefaultEndpoint
public boolean isSingleton()
isSingleton
in interface org.apache.camel.IsSingleton
public 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.HeaderFilterStrategyAware
public void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
setHeaderFilterStrategy
in interface org.apache.camel.spi.HeaderFilterStrategyAware
public 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