public abstract class HttpCommonComponent
extends org.apache.camel.impl.HeaderFilterStrategyComponent
| Modifier and Type | Field and Description |
|---|---|
protected HttpBinding |
httpBinding |
protected HttpConfiguration |
httpConfiguration |
| Constructor and Description |
|---|
HttpCommonComponent(Class<? extends HttpCommonEndpoint> endpointClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(HttpConsumer consumer)
Connects the URL specified on the endpoint to the specified processor.
|
void |
disconnect(HttpConsumer consumer)
Disconnects the URL specified on the endpoint from the specified processor.
|
HttpBinding |
getHttpBinding() |
HttpConfiguration |
getHttpConfiguration() |
void |
setHttpBinding(HttpBinding httpBinding)
To use a custom HttpBinding to control the mapping between Camel message and HttpClient.
|
void |
setHttpConfiguration(HttpConfiguration httpConfiguration)
To use the shared HttpConfiguration as base configuration.
|
protected boolean |
useIntrospectionOnEndpoint() |
getHeaderFilterStrategy, setEndpointHeaderFilterStrategy, setHeaderFilterStrategycreateComponentConfiguration, createParameterConfigurationMap, getEndpointClass, getParameterConfigurationMap, populateParameterConfigurationMap, setEndpointClassafterConfiguration, createConfiguration, createEndpoint, createEndpoint, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useRawUri, validateParameters, validateURIprotected HttpBinding httpBinding
protected HttpConfiguration httpConfiguration
public HttpCommonComponent(Class<? extends HttpCommonEndpoint> 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 boolean useIntrospectionOnEndpoint()
useIntrospectionOnEndpoint in class org.apache.camel.impl.DefaultComponentpublic HttpBinding getHttpBinding()
public void setHttpBinding(HttpBinding httpBinding)
public HttpConfiguration getHttpConfiguration()
public void setHttpConfiguration(HttpConfiguration httpConfiguration)
Apache Camel