org.apache.camel.component.http
Class HttpComponent

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultComponent
          extended by org.apache.camel.impl.HeaderFilterStrategyComponent
              extended by org.apache.camel.component.http.HttpComponent
All Implemented Interfaces:
Component, Service, HeaderFilterStrategyAware

public class HttpComponent
extends HeaderFilterStrategyComponent

Defines the HTTP Component

Version:
$Revision: 778701 $

Field Summary
protected  HttpBinding httpBinding
           
protected  HttpClientConfigurer httpClientConfigurer
           
protected  org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager
           
 
Constructor Summary
HttpComponent()
           
 
Method Summary
protected  void configureParameters(Map parameters)
          Setting http binding and http client configurer according to the parameters Also setting the BasicAuthenticationHttpClientConfigurer if the username and password option are not null.
 void connect(HttpConsumer consumer)
          Connects the URL specified on the endpoint to the specified processor.
protected  Endpoint createEndpoint(String uri, String remaining, Map parameters)
           
 void disconnect(HttpConsumer consumer)
          Disconnects the URL specified on the endpoint from the specified processor.
 HttpBinding getHttpBinding()
           
 HttpClientConfigurer getHttpClientConfigurer()
           
 org.apache.commons.httpclient.HttpConnectionManager getHttpConnectionManager()
           
 boolean isMatchOnUriPrefix()
           
 void setHttpBinding(HttpBinding httpBinding)
           
 void setHttpClientConfigurer(HttpClientConfigurer httpClientConfigurer)
           
 void setHttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager)
           
protected  boolean useIntrospectionOnEndpoint()
           
 
Methods inherited from class org.apache.camel.impl.HeaderFilterStrategyComponent
getHeaderFilterStrategy, setEndpointHeaderFilterStrategy, setHeaderFilterStrategy
 
Methods inherited from class org.apache.camel.impl.DefaultComponent
convertTo, createEndpoint, createScheduledExecutorService, doStart, doStop, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getExecutorService, getScheduledExecutorService, ifStartsWithReturnRemainder, isReferenceParameter, lookup, lookup, mandatoryConvertTo, mandatoryLookup, mandatoryLookup, newInstance, setCamelContext, setExecutorService, setProperties, setReferenceProperties, validateParameters, validateURI
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

httpClientConfigurer

protected HttpClientConfigurer httpClientConfigurer

httpConnectionManager

protected org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager

httpBinding

protected HttpBinding httpBinding
Constructor Detail

HttpComponent

public HttpComponent()
Method Detail

connect

public void connect(HttpConsumer consumer)
             throws Exception
Connects the URL specified on the endpoint to the specified processor.

Parameters:
consumer - the consumer
Throws:
Exception - can be thrown

disconnect

public void disconnect(HttpConsumer consumer)
                throws Exception
Disconnects the URL specified on the endpoint from the specified processor.

Parameters:
consumer - the consumer
Throws:
Exception - can be thrown

configureParameters

protected void configureParameters(Map parameters)
Setting http binding and http client configurer according to the parameters Also setting the BasicAuthenticationHttpClientConfigurer if the username and password option are not null.

Parameters:
parameters - the map of parameters

createEndpoint

protected Endpoint createEndpoint(String uri,
                                  String remaining,
                                  Map parameters)
                           throws Exception
Specified by:
createEndpoint in class DefaultComponent
Throws:
Exception

useIntrospectionOnEndpoint

protected boolean useIntrospectionOnEndpoint()
Overrides:
useIntrospectionOnEndpoint in class DefaultComponent

getHttpClientConfigurer

public HttpClientConfigurer getHttpClientConfigurer()

setHttpClientConfigurer

public void setHttpClientConfigurer(HttpClientConfigurer httpClientConfigurer)

getHttpConnectionManager

public org.apache.commons.httpclient.HttpConnectionManager getHttpConnectionManager()

setHttpConnectionManager

public void setHttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager)

getHttpBinding

public HttpBinding getHttpBinding()

setHttpBinding

public void setHttpBinding(HttpBinding httpBinding)

isMatchOnUriPrefix

public boolean isMatchOnUriPrefix()


Copyright © 2009 Apache Software Foundation. All Rights Reserved.