|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.impl.DefaultEndpoint org.apache.camel.impl.ScheduledPollEndpoint org.apache.camel.impl.DefaultPollingEndpoint org.apache.camel.component.http4.HttpEndpoint
public class HttpEndpoint
Represents a HTTP endpoint
Constructor Summary | |
---|---|
HttpEndpoint()
|
|
HttpEndpoint(String endPointURI,
HttpComponent component,
URI httpURI)
|
|
HttpEndpoint(String endPointURI,
HttpComponent component,
URI httpURI,
org.apache.http.conn.ClientConnectionManager clientConnectionManager)
|
|
HttpEndpoint(String endPointURI,
HttpComponent component,
URI httpURI,
org.apache.http.params.HttpParams clientParams,
org.apache.http.conn.ClientConnectionManager clientConnectionManager,
HttpClientConfigurer clientConfigurer)
|
Method Summary | |
---|---|
void |
connect(HttpConsumer consumer)
|
protected org.apache.http.client.HttpClient |
createHttpClient()
Factory method to create a new HttpClient instance
Producers and consumers should use the getHttpClient() method instead. |
PollingConsumer |
createPollingConsumer()
|
Producer |
createProducer()
|
void |
disconnect(HttpConsumer consumer)
|
HttpBinding |
getBinding()
|
org.apache.http.conn.ClientConnectionManager |
getClientConnectionManager()
|
org.apache.http.params.HttpParams |
getClientParams()
Provide access to the client parameters used on new HttpClient instances
used by producers or consumers of this endpoint. |
HeaderFilterStrategy |
getHeaderFilterStrategy()
|
org.apache.http.client.HttpClient |
getHttpClient()
Gets the HttpClient to be used by HttpProducer |
HttpClientConfigurer |
getHttpClientConfigurer()
|
URI |
getHttpUri()
|
String |
getPath()
|
int |
getPort()
|
String |
getProtocol()
|
boolean |
isBridgeEndpoint()
|
boolean |
isChunked()
|
boolean |
isDisableStreamCache()
|
boolean |
isLenientProperties()
|
boolean |
isMatchOnUriPrefix()
|
boolean |
isSingleton()
|
boolean |
isThrowExceptionOnFailure()
|
boolean |
isTransferException()
|
void |
setBinding(HttpBinding binding)
|
void |
setBridgeEndpoint(boolean bridge)
|
void |
setChunked(boolean chunked)
|
void |
setClientConnectionManager(org.apache.http.conn.ClientConnectionManager clientConnectionManager)
|
void |
setClientParams(org.apache.http.params.HttpParams clientParams)
Provide access to the client parameters used on new HttpClient instances
used by producers or consumers of this endpoint. |
void |
setDisableStreamCache(boolean disable)
|
void |
setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy)
|
void |
setHttpClient(org.apache.http.client.HttpClient httpClient)
|
void |
setHttpClientConfigurer(HttpClientConfigurer httpClientConfigurer)
Register a custom configuration strategy for new HttpClient instances
created by producers or consumers such as to configure authentication mechanisms etc |
void |
setHttpUri(URI httpUri)
|
void |
setMatchOnUriPrefix(boolean match)
|
void |
setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
|
void |
setTransferException(boolean transferException)
|
Methods inherited from class org.apache.camel.impl.DefaultPollingEndpoint |
---|
createConsumer |
Methods inherited from class org.apache.camel.impl.ScheduledPollEndpoint |
---|
configureConsumer, configureProperties, getConsumerProperties, setConsumerProperties |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
---|
createEndpointUri, createExchange, createExchange, createExchange, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, start, stop, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public HttpEndpoint()
public HttpEndpoint(String endPointURI, HttpComponent component, URI httpURI) throws URISyntaxException
URISyntaxException
public HttpEndpoint(String endPointURI, HttpComponent component, URI httpURI, org.apache.http.conn.ClientConnectionManager clientConnectionManager) throws URISyntaxException
URISyntaxException
public HttpEndpoint(String endPointURI, HttpComponent component, URI httpURI, org.apache.http.params.HttpParams clientParams, org.apache.http.conn.ClientConnectionManager clientConnectionManager, HttpClientConfigurer clientConfigurer) throws URISyntaxException
URISyntaxException
Method Detail |
---|
public Producer createProducer() throws Exception
createProducer
in interface Endpoint
Exception
public PollingConsumer createPollingConsumer() throws Exception
createPollingConsumer
in interface Endpoint
createPollingConsumer
in class DefaultEndpoint
Exception
public org.apache.http.client.HttpClient getHttpClient()
HttpProducer
public void setHttpClient(org.apache.http.client.HttpClient httpClient)
protected org.apache.http.client.HttpClient createHttpClient()
HttpClient
instance
Producers and consumers should use the getHttpClient()
method instead.
public void connect(HttpConsumer consumer) throws Exception
Exception
public void disconnect(HttpConsumer consumer) throws Exception
Exception
public boolean isLenientProperties()
isLenientProperties
in interface Endpoint
isLenientProperties
in class DefaultEndpoint
public boolean isSingleton()
isSingleton
in interface IsSingleton
public org.apache.http.params.HttpParams getClientParams()
HttpClient
instances
used by producers or consumers of this endpoint.
public void setClientParams(org.apache.http.params.HttpParams clientParams)
HttpClient
instances
used by producers or consumers of this endpoint.
public HttpClientConfigurer getHttpClientConfigurer()
public void setHttpClientConfigurer(HttpClientConfigurer httpClientConfigurer)
HttpClient
instances
created by producers or consumers such as to configure authentication mechanisms etc
httpClientConfigurer
- the strategy for configuring new HttpClient
instancespublic HttpBinding getBinding()
public void setBinding(HttpBinding binding)
public String getPath()
public int getPort()
public String getProtocol()
public URI getHttpUri()
public void setHttpUri(URI httpUri)
public org.apache.http.conn.ClientConnectionManager getClientConnectionManager()
public void setClientConnectionManager(org.apache.http.conn.ClientConnectionManager clientConnectionManager)
public HeaderFilterStrategy getHeaderFilterStrategy()
getHeaderFilterStrategy
in interface HeaderFilterStrategyAware
public void setHeaderFilterStrategy(HeaderFilterStrategy headerFilterStrategy)
setHeaderFilterStrategy
in interface HeaderFilterStrategyAware
public boolean isThrowExceptionOnFailure()
public void setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
public boolean isBridgeEndpoint()
public void setBridgeEndpoint(boolean bridge)
public boolean isMatchOnUriPrefix()
public void setMatchOnUriPrefix(boolean match)
public boolean isDisableStreamCache()
public void setDisableStreamCache(boolean disable)
public boolean isChunked()
public void setChunked(boolean chunked)
public boolean isTransferException()
public void setTransferException(boolean transferException)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |