|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultComponent
org.apache.camel.impl.HeaderFilterStrategyComponent
org.apache.camel.component.http.HttpComponent
public class HttpComponent
Defines the HTTP Component
| Field Summary | |
|---|---|
protected HttpBinding |
httpBinding
|
protected HttpClientConfigurer |
httpClientConfigurer
|
protected HttpConfiguration |
httpConfiguration
|
protected org.apache.commons.httpclient.HttpConnectionManager |
httpConnectionManager
|
| Constructor Summary | |
|---|---|
HttpComponent()
|
|
| Method Summary | |
|---|---|
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 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()
|
| Methods inherited from class org.apache.camel.impl.HeaderFilterStrategyComponent |
|---|
getHeaderFilterStrategy, setEndpointHeaderFilterStrategy, setHeaderFilterStrategy |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected HttpClientConfigurer httpClientConfigurer
protected org.apache.commons.httpclient.HttpConnectionManager httpConnectionManager
protected HttpBinding httpBinding
protected HttpConfiguration httpConfiguration
| Constructor Detail |
|---|
public HttpComponent()
| Method Detail |
|---|
public void connect(HttpConsumer consumer)
throws Exception
consumer - the consumer
Exception - can be thrown
public void disconnect(HttpConsumer consumer)
throws Exception
consumer - the consumer
Exception - can be thrown
protected HttpClientConfigurer createHttpClientConfigurer(Map<String,Object> parameters,
Set<AuthMethod> authMethods)
parameters - the map of parameters
protected 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 Endpoint createEndpoint(String uri,
String remaining,
Map<String,Object> parameters)
throws Exception
createEndpoint in class DefaultComponentExceptionprotected boolean useIntrospectionOnEndpoint()
useIntrospectionOnEndpoint in class DefaultComponentpublic 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||