org.apache.camel.component.http
Class HttpEndpoint
java.lang.Object
org.apache.camel.impl.DefaultEndpoint<E>
org.apache.camel.impl.ScheduledPollEndpoint<E>
org.apache.camel.impl.DefaultPollingEndpoint<HttpExchange>
org.apache.camel.component.http.HttpEndpoint
- All Implemented Interfaces:
- CamelContextAware, Endpoint<HttpExchange>
public class HttpEndpoint
- extends DefaultPollingEndpoint<HttpExchange>
Represents a HTTP
endpoint
- Version:
- $Revision: 719673 $
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
convertTo, createEndpointUri, createExchange, createExchange, createExecutorService, equals, getCamelContext, getComponent, getContext, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, hashCode, setCamelContext, setContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setExecutorService, toString |
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<HttpExchange> createProducer()
throws Exception
- Throws:
Exception
createPollingConsumer
public PollingConsumer<HttpExchange> createPollingConsumer()
throws Exception
- Specified by:
createPollingConsumer
in interface Endpoint<HttpExchange>
- Overrides:
createPollingConsumer
in class DefaultEndpoint<HttpExchange>
- Throws:
Exception
createExchange
public HttpExchange createExchange(ExchangePattern pattern)
- Specified by:
createExchange
in interface Endpoint<HttpExchange>
- Overrides:
createExchange
in class DefaultEndpoint<HttpExchange>
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<HttpExchange>
- Overrides:
isLenientProperties
in class DefaultEndpoint<HttpExchange>
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()
getHeaderFilterStrategy
public HeaderFilterStrategy getHeaderFilterStrategy()
setBinding
public void setBinding(HttpBinding binding)
isSingleton
public boolean isSingleton()
getPath
public String getPath()
getPort
public int getPort()
getProtocol
public String getProtocol()
getHttpUri
public URI getHttpUri()
Copyright © 2009 Apache Software Foundation. All Rights Reserved.