public class HttpComponent
extends org.apache.camel.impl.HeaderFilterStrategyComponent
Modifier and Type | Field and Description |
---|---|
protected org.apache.http.conn.ClientConnectionManager |
clientConnectionManager |
protected int |
connectionsPerRoute |
protected long |
connectionTimeToLive |
protected org.apache.http.client.CookieStore |
cookieStore |
protected HttpBinding |
httpBinding |
protected HttpClientConfigurer |
httpClientConfigurer |
protected org.apache.http.protocol.HttpContext |
httpContext |
protected int |
maxTotalConnections |
protected org.apache.camel.util.jsse.SSLContextParameters |
sslContextParameters |
protected org.apache.http.conn.ssl.X509HostnameVerifier |
x509HostnameVerifier |
Constructor and Description |
---|
HttpComponent() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.http.params.HttpParams |
configureHttpParams(Map<String,Object> parameters) |
void |
connect(HttpConsumer consumer)
Connects the URL specified on the endpoint to the specified processor.
|
protected org.apache.http.conn.ClientConnectionManager |
createConnectionManager() |
protected org.apache.camel.Endpoint |
createEndpoint(String uri,
String remaining,
Map<String,Object> parameters) |
protected HttpClientConfigurer |
createHttpClientConfigurer(Map<String,Object> parameters,
boolean secure)
Creates the HttpClientConfigurer based on the given parameters
|
void |
disconnect(HttpConsumer consumer)
Disconnects the URL specified on the endpoint from the specified processor.
|
void |
doStart() |
void |
doStop() |
org.apache.http.conn.ClientConnectionManager |
getClientConnectionManager() |
int |
getConnectionsPerRoute() |
long |
getConnectionTimeToLive() |
org.apache.http.client.CookieStore |
getCookieStore() |
HttpBinding |
getHttpBinding() |
HttpClientConfigurer |
getHttpClientConfigurer() |
org.apache.http.protocol.HttpContext |
getHttpContext() |
int |
getMaxTotalConnections() |
org.apache.camel.util.jsse.SSLContextParameters |
getSslContextParameters() |
org.apache.http.conn.ssl.X509HostnameVerifier |
getX509HostnameVerifier() |
protected void |
registerPort(boolean secure,
org.apache.http.conn.ssl.X509HostnameVerifier x509HostnameVerifier,
int port,
org.apache.camel.util.jsse.SSLContextParameters sslContextParams) |
void |
setClientConnectionManager(org.apache.http.conn.ClientConnectionManager clientConnectionManager) |
void |
setConnectionsPerRoute(int connectionsPerRoute) |
void |
setConnectionTimeToLive(long connectionTimeToLive) |
void |
setCookieStore(org.apache.http.client.CookieStore cookieStore) |
void |
setHttpBinding(HttpBinding httpBinding) |
void |
setHttpClientConfigurer(HttpClientConfigurer httpClientConfigurer) |
void |
setHttpContext(org.apache.http.protocol.HttpContext httpContext) |
void |
setMaxTotalConnections(int maxTotalConnections) |
void |
setSslContextParameters(org.apache.camel.util.jsse.SSLContextParameters sslContextParameters) |
void |
setX509HostnameVerifier(org.apache.http.conn.ssl.X509HostnameVerifier x509HostnameVerifier) |
protected boolean |
useIntrospectionOnEndpoint() |
getHeaderFilterStrategy, setEndpointHeaderFilterStrategy, setHeaderFilterStrategy
afterConfiguration, createComponentConfiguration, createConfiguration, createEndpoint, getAndRemoveParameter, getAndRemoveParameter, getCamelContext, ifStartsWithReturnRemainder, preProcessUri, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceListParameter, resolveAndRemoveReferenceParameter, resolveAndRemoveReferenceParameter, setCamelContext, setProperties, useRawUri, validateParameters, validateURI
protected HttpClientConfigurer httpClientConfigurer
protected org.apache.http.conn.ClientConnectionManager clientConnectionManager
protected HttpBinding httpBinding
protected org.apache.http.protocol.HttpContext httpContext
protected org.apache.camel.util.jsse.SSLContextParameters sslContextParameters
protected org.apache.http.conn.ssl.X509HostnameVerifier x509HostnameVerifier
protected org.apache.http.client.CookieStore cookieStore
protected int maxTotalConnections
protected int connectionsPerRoute
protected long connectionTimeToLive
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, boolean secure) throws Exception
parameters
- the map of parameterssecure
- whether the endpoint is secure (eg https4)Exception
- is thrown if error creating configurerprotected 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 void registerPort(boolean secure, org.apache.http.conn.ssl.X509HostnameVerifier x509HostnameVerifier, int port, org.apache.camel.util.jsse.SSLContextParameters sslContextParams) throws Exception
Exception
protected org.apache.http.conn.ClientConnectionManager createConnectionManager()
protected org.apache.http.params.HttpParams configureHttpParams(Map<String,Object> parameters) throws Exception
Exception
protected boolean useIntrospectionOnEndpoint()
useIntrospectionOnEndpoint
in class org.apache.camel.impl.DefaultComponent
public HttpClientConfigurer getHttpClientConfigurer()
public void setHttpClientConfigurer(HttpClientConfigurer httpClientConfigurer)
public org.apache.http.conn.ClientConnectionManager getClientConnectionManager()
public void setClientConnectionManager(org.apache.http.conn.ClientConnectionManager clientConnectionManager)
public HttpBinding getHttpBinding()
public void setHttpBinding(HttpBinding httpBinding)
public org.apache.http.protocol.HttpContext getHttpContext()
public void setHttpContext(org.apache.http.protocol.HttpContext httpContext)
public org.apache.camel.util.jsse.SSLContextParameters getSslContextParameters()
public void setSslContextParameters(org.apache.camel.util.jsse.SSLContextParameters sslContextParameters)
public org.apache.http.conn.ssl.X509HostnameVerifier getX509HostnameVerifier()
public void setX509HostnameVerifier(org.apache.http.conn.ssl.X509HostnameVerifier x509HostnameVerifier)
public int getMaxTotalConnections()
public void setMaxTotalConnections(int maxTotalConnections)
public int getConnectionsPerRoute()
public void setConnectionsPerRoute(int connectionsPerRoute)
public long getConnectionTimeToLive()
public void setConnectionTimeToLive(long connectionTimeToLive)
public org.apache.http.client.CookieStore getCookieStore()
public void setCookieStore(org.apache.http.client.CookieStore cookieStore)
public void doStart() throws Exception
doStart
in class org.apache.camel.impl.DefaultComponent
Exception
Apache Camel