org.apache.camel.component.http
Class HttpEndpoint

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

Constructor Summary
HttpEndpoint()
           
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)
           
 
Method Summary
 void connect(HttpConsumer consumer)
           
 org.apache.commons.httpclient.HttpClient createHttpClient()
          Factory method used by producers and consumers to create a new HttpClient instance
 PollingConsumer createPollingConsumer()
           
 Producer 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()
           
 org.apache.commons.httpclient.HttpConnectionManager getHttpConnectionManager()
           
 URI getHttpUri()
           
 String getPath()
           
 int getPort()
           
 String getProtocol()
           
 boolean isBridgeEndpoint()
           
 boolean isChunked()
           
 boolean isLenientProperties()
           
 boolean isMatchOnUriPrefix()
           
 boolean isSingleton()
           
 boolean isThrowExceptionOnFailure()
           
 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 setHeaderFilterStrategy(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 setHttpUri(URI httpUri)
           
 void setMatchOnUriPrefix(boolean match)
           
 void setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
           
 
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
createEndpointUri, createExchange, createExchange, createExchange, createScheduledExecutorService, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getExecutorService, getScheduledExecutorService, hashCode, setCamelContext, 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()

HttpEndpoint

public HttpEndpoint(String endPointURI,
                    HttpComponent component,
                    URI httpURI)
             throws URISyntaxException
Throws:
URISyntaxException

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

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)

isBridgeEndpoint

public boolean isBridgeEndpoint()

setBridgeEndpoint

public void setBridgeEndpoint(boolean bridge)

isMatchOnUriPrefix

public boolean isMatchOnUriPrefix()

setMatchOnUriPrefix

public void setMatchOnUriPrefix(boolean match)

isChunked

public boolean isChunked()

setChunked

public void setChunked(boolean chunked)


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.