public class HttpComponent
extends org.apache.camel.impl.HeaderFilterStrategyComponent
Modifier and Type | Field and Description |
---|---|
protected HttpBinding |
httpBinding |
protected HttpClientConfigurer |
httpClientConfigurer |
protected HttpConfiguration |
httpConfiguration |
protected org.apache.commons.httpclient.HttpConnectionManager |
httpConnectionManager |
Constructor and Description |
---|
HttpComponent() |
HttpComponent(Class<? extends HttpEndpoint> endpointClass) |
Modifier and Type | Method and Description |
---|---|
protected HttpClientConfigurer |
configureAuth(HttpClientConfigurer configurer,
AuthMethod authMethod,
String username,
String password,
String domain,
String host,
Set<AuthMethod> authMethods)
Configures the authentication method to be used
|
protected HttpClientConfigurer |
configureProxyAuth(HttpClientConfigurer configurer,
AuthMethod authMethod,
String username,
String password,
String domain,
String host,
Set<AuthMethod> authMethods)
Configures the proxy authentication method to be used
|
void |
connect(HttpConsumer consumer)
Connects the URL specified on the endpoint to the specified processor.
|
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
protected HttpClientConfigurer |
createHttpClientConfigurer(Map<String,Object> parameters,
Set<AuthMethod> authMethods)
Creates the HttpClientConfigurer based on the given parameters
|
void |
disconnect(HttpConsumer consumer)
Disconnects the URL specified on the endpoint from the specified processor.
|
HttpBinding |
getHttpBinding() |
HttpClientConfigurer |
getHttpClientConfigurer() |
HttpConfiguration |
getHttpConfiguration() |
org.apache.commons.httpclient.HttpConnectionManager |
getHttpConnectionManager() |
void |
setHttpBinding(HttpBinding httpBinding) |
void |
setHttpClientConfigurer(HttpClientConfigurer httpClientConfigurer) |
void |
setHttpConfiguration(HttpConfiguration httpConfiguration) |
void |
setHttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager) |
protected boolean |
useIntrospectionOnEndpoint() |
getHeaderFilterStrategy, setEndpointHeaderFilterStrategy, setHeaderFilterStrategy
createComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClass
afterConfiguration, createConfiguration, createEndpoint, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useRawUri, validateParameters, validateURI
protected HttpClientConfigurer httpClientConfigurer
protected org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager
protected HttpBinding httpBinding
protected HttpConfiguration httpConfiguration
public HttpComponent()
public HttpComponent(Class<? extends HttpEndpoint> endpointClass)
public void connect(HttpConsumer consumer) throws Exception
consumer
- the consumerException
- can be thrownpublic void disconnect(HttpConsumer consumer) throws Exception
consumer
- the consumerException
- can be thrownprotected HttpClientConfigurer createHttpClientConfigurer(Map<String,Object> parameters, Set<AuthMethod> authMethods)
parameters
- the map of parametersprotected HttpClientConfigurer configureAuth(HttpClientConfigurer configurer, AuthMethod authMethod, String username, String password, String domain, String host, Set<AuthMethod> authMethods)
protected HttpClientConfigurer configureProxyAuth(HttpClientConfigurer configurer, AuthMethod authMethod, String username, String password, String domain, String host, Set<AuthMethod> authMethods)
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint
in class org.apache.camel.impl.DefaultComponent
Exception
protected boolean useIntrospectionOnEndpoint()
useIntrospectionOnEndpoint
in class org.apache.camel.impl.DefaultComponent
public HttpClientConfigurer getHttpClientConfigurer()
public void setHttpClientConfigurer(HttpClientConfigurer httpClientConfigurer)
public org.apache.commons.httpclient.HttpConnectionManager getHttpConnectionManager()
public void setHttpConnectionManager(org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager)
public HttpBinding getHttpBinding()
public void setHttpBinding(HttpBinding httpBinding)
public HttpConfiguration getHttpConfiguration()
public void setHttpConfiguration(HttpConfiguration httpConfiguration)
Apache Camel