public abstract class HttpCommonComponent
extends org.apache.camel.impl.HeaderFilterStrategyComponent
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
allowJavaSerializedObject |
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() |
boolean |
isAllowJavaSerializedObject() |
void |
setAllowJavaSerializedObject(boolean allowJavaSerializedObject)
Whether to allow java serialization when a request uses context-type=application/x-java-serialized-object
This is by default turned off.
|
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
protected boolean allowJavaSerializedObject
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)
public boolean isAllowJavaSerializedObject()
public void setAllowJavaSerializedObject(boolean allowJavaSerializedObject)
Apache Camel