org.apache.camel.component.http
Class HttpComponent
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultComponent
org.apache.camel.impl.HeaderFilterStrategyComponent
org.apache.camel.component.http.HttpComponent
- All Implemented Interfaces:
- Component, Service, HeaderFilterStrategyAware
public class HttpComponent
- extends HeaderFilterStrategyComponent
Defines the HTTP
Component
- Version:
- $Revision: 890042 $
Methods inherited from class org.apache.camel.impl.DefaultComponent |
afterConfiguration, convertTo, createEndpoint, createScheduledExecutorService, doStart, doStop, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getExecutorService, getScheduledExecutorService, ifStartsWithReturnRemainder, lookup, lookup, mandatoryConvertTo, mandatoryLookup, mandatoryLookup, newInstance, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setExecutorService, setProperties, 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 |
httpClientConfigurer
protected HttpClientConfigurer httpClientConfigurer
httpConnectionManager
protected org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager
httpBinding
protected HttpBinding httpBinding
HttpComponent
public HttpComponent()
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<String,Object> 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<String,Object> 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)
Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.