org.apache.camel.component.http
Class HttpEndpoint

java.lang.Object
  extended by org.apache.camel.impl.DefaultEndpoint<E>
      extended by org.apache.camel.impl.ScheduledPollEndpoint<E>
          extended by org.apache.camel.impl.DefaultPollingEndpoint<HttpExchange>
              extended by 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 $

Constructor Summary
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)
           
 
Method Summary
 void connect(HttpConsumer consumer)
           
 HttpExchange createExchange(ExchangePattern pattern)
           
 HttpExchange createExchange(HttpServletRequest request, HttpServletResponse response)
           
 org.apache.commons.httpclient.HttpClient createHttpClient()
          Factory method used by producers and consumers to create a new HttpClient instance
 PollingConsumer<HttpExchange> createPollingConsumer()
           
 Producer<HttpExchange> createProducer()
           
 void disconnect(HttpConsumer consumer)
           
 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.
 HeaderFilterStrategy getHeaderFilterStrategy()
           
 HttpClientConfigurer getHttpClientConfigurer()
           
 URI getHttpUri()
           
 String getPath()
           
 int getPort()
           
 String getProtocol()
           
 boolean isLenientProperties()
           
 boolean isSingleton()
           
 void setBinding(HttpBinding binding)
           
 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
 
Methods inherited from class org.apache.camel.impl.DefaultPollingEndpoint
createConsumer
 
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.