org.apache.camel.component.http
Class HttpEndpoint
java.lang.Object
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.impl.ScheduledPollEndpoint
org.apache.camel.impl.DefaultPollingEndpoint
org.apache.camel.component.http.HttpEndpoint
- All Implemented Interfaces:
- CamelContextAware, Endpoint, IsSingleton, HeaderFilterStrategyAware
public class HttpEndpoint
- extends DefaultPollingEndpoint
- implements HeaderFilterStrategyAware
Represents a HTTP endpoint
- Version:
- $Revision: 782923 $
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
convertTo, createEndpointUri, createExchange, createExchange, createScheduledExecutorService, equals, getCamelContext, getComponent, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, getScheduledExecutorService, hashCode, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString |
HttpEndpoint
public HttpEndpoint()
HttpEndpoint
public HttpEndpoint(String endPointURI,
HttpComponent component,
URI httpURI,
org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager)
throws URISyntaxException
- Throws:
URISyntaxException
HttpEndpoint
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
- Throws:
URISyntaxException
createProducer
public Producer createProducer()
throws Exception
- Specified by:
createProducer
in interface Endpoint
- Throws:
Exception
createPollingConsumer
public PollingConsumer createPollingConsumer()
throws Exception
- Specified by:
createPollingConsumer
in interface Endpoint
- Overrides:
createPollingConsumer
in class DefaultEndpoint
- Throws:
Exception
createExchange
public Exchange createExchange(ExchangePattern pattern)
- Specified by:
createExchange
in interface Endpoint
- Overrides:
createExchange
in class DefaultEndpoint
createExchange
public HttpExchange createExchange(HttpServletRequest request,
HttpServletResponse response)
createHttpClient
public org.apache.commons.httpclient.HttpClient createHttpClient()
- Factory method used by producers and consumers to create a new
HttpClient
instance
connect
public void connect(HttpConsumer consumer)
throws Exception
- Throws:
Exception
disconnect
public void disconnect(HttpConsumer consumer)
throws Exception
- Throws:
Exception
isLenientProperties
public boolean isLenientProperties()
- Specified by:
isLenientProperties
in interface Endpoint
- Overrides:
isLenientProperties
in class DefaultEndpoint
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface IsSingleton
getClientParams
public 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.
setClientParams
public 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.
getHttpClientConfigurer
public HttpClientConfigurer getHttpClientConfigurer()
setHttpClientConfigurer
public 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
- Parameters:
httpClientConfigurer
- the strategy for configuring new HttpClient
instances
getBinding
public HttpBinding getBinding()
setBinding
public void setBinding(HttpBinding binding)
getPath
public String getPath()
getPort
public int getPort()
getProtocol
public String getProtocol()
getHttpUri
public URI getHttpUri()
setHttpUri
public void setHttpUri(URI httpUri)
getHttpConnectionManager
public org.apache.commons.httpclient.HttpConnectionManager getHttpConnectionManager()
setHttpConnectionManager
public void setHttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager)
getHeaderFilterStrategy
public HeaderFilterStrategy getHeaderFilterStrategy()
- Specified by:
getHeaderFilterStrategy
in interface HeaderFilterStrategyAware
setHeaderFilterStrategy
public void setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy)
- Specified by:
setHeaderFilterStrategy
in interface HeaderFilterStrategyAware
isThrowExceptionOnFailure
public boolean isThrowExceptionOnFailure()
setThrowExceptionOnFailure
public void setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
Copyright © 2009 Apache Software Foundation. All Rights Reserved.