@Component(value="ahc")
public class AhcComponent
extends org.apache.camel.support.HeaderFilterStrategyComponent
implements org.apache.camel.SSLContextParametersAware
Constructor and Description |
---|
AhcComponent() |
Modifier and Type | Method and Description |
---|---|
protected String |
createAddressUri(String uri,
String remaining) |
protected AhcEndpoint |
createAhcEndpoint(String endpointUri,
AhcComponent component,
URI httpUri) |
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
AhcBinding |
getBinding() |
org.asynchttpclient.AsyncHttpClient |
getClient() |
org.asynchttpclient.AsyncHttpClientConfig |
getClientConfig() |
org.apache.camel.support.jsse.SSLContextParameters |
getSslContextParameters() |
boolean |
isAllowJavaSerializedObject() |
boolean |
isUseGlobalSslContextParameters() |
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 |
setBinding(AhcBinding binding)
To use a custom
AhcBinding which allows to control how to bind between AHC and Camel. |
void |
setClient(org.asynchttpclient.AsyncHttpClient client)
To use a custom
AsyncHttpClient |
void |
setClientConfig(org.asynchttpclient.AsyncHttpClientConfig clientConfig)
To configure the AsyncHttpClient to use a custom com.ning.http.client.AsyncHttpClientConfig instance.
|
void |
setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
Reference to a org.apache.camel.support.jsse.SSLContextParameters in the Registry.
|
void |
setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters)
Enable usage of global SSL context parameters.
|
getHeaderFilterStrategy, setEndpointHeaderFilterStrategy, setHeaderFilterStrategy
afterConfiguration, createEndpoint, createEndpoint, doBuild, doInit, doStart, doStop, getAndRemoveOrResolveReferenceParameter, getAndRemoveOrResolveReferenceParameter, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, getComponentPropertyConfigurer, getDefaultName, getEndpointPropertyConfigurer, getExtension, getSupportedExtensions, ifStartsWithReturnRemainder, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, registerExtension, registerExtension, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, resolveRawParameterValues, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setLazyStartProducer, setProperties, setProperties, setProperties, useIntrospectionOnEndpoint, useRawUri, validateParameters, validateURI
build, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
retrieveGlobalSslContextParameters
getCamelContext, setCamelContext, trySetCamelContext
protected org.apache.camel.Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
createEndpoint
in class org.apache.camel.support.DefaultComponent
Exception
public org.asynchttpclient.AsyncHttpClient getClient()
public void setClient(org.asynchttpclient.AsyncHttpClient client)
AsyncHttpClient
public AhcBinding getBinding()
public void setBinding(AhcBinding binding)
AhcBinding
which allows to control how to bind between AHC and Camel.public org.asynchttpclient.AsyncHttpClientConfig getClientConfig()
public void setClientConfig(org.asynchttpclient.AsyncHttpClientConfig clientConfig)
public org.apache.camel.support.jsse.SSLContextParameters getSslContextParameters()
public void setSslContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
public boolean isAllowJavaSerializedObject()
public void setAllowJavaSerializedObject(boolean allowJavaSerializedObject)
public boolean isUseGlobalSslContextParameters()
isUseGlobalSslContextParameters
in interface org.apache.camel.SSLContextParametersAware
public void setUseGlobalSslContextParameters(boolean useGlobalSslContextParameters)
setUseGlobalSslContextParameters
in interface org.apache.camel.SSLContextParametersAware
protected AhcEndpoint createAhcEndpoint(String endpointUri, AhcComponent component, URI httpUri)
Apache Camel