public abstract class HttpCommonEndpoint
extends org.apache.camel.impl.DefaultEndpoint
implements org.apache.camel.spi.HeaderFilterStrategyAware
Constructor and Description |
---|
HttpCommonEndpoint() |
HttpCommonEndpoint(String endPointURI,
HttpCommonComponent component,
URI httpURI) |
Modifier and Type | Method and Description |
---|---|
void |
connect(HttpConsumer consumer) |
void |
disconnect(HttpConsumer consumer) |
String |
getAuthMethodPriority() |
HttpBinding |
getBinding() |
org.apache.camel.spi.HeaderFilterStrategy |
getHeaderFilterStrategy() |
String |
getHttpMethodRestrict() |
URI |
getHttpUri() |
String |
getOkStatusCodeRange() |
String |
getPath() |
int |
getPort() |
String |
getProtocol() |
String |
getProxyHost() |
int |
getProxyPort() |
Integer |
getResponseBufferSize() |
UrlRewrite |
getUrlRewrite() |
boolean |
isBridgeEndpoint() |
boolean |
isChunked() |
boolean |
isCopyHeaders()
If this option is true then IN exchange headers will be copied to OUT exchange headers according to copy strategy.
|
boolean |
isDisableStreamCache() |
boolean |
isEagerCheckContentAvailable() |
boolean |
isIgnoreResponseBody() |
boolean |
isLenientProperties() |
boolean |
isMatchOnUriPrefix() |
boolean |
isSingleton() |
boolean |
isThrowExceptionOnFailure() |
boolean |
isTraceEnabled() |
boolean |
isTransferException() |
void |
setAuthMethodPriority(String authMethodPriority)
Authentication method for proxy, either as Basic, Digest or NTLM.
|
void |
setBinding(HttpBinding binding)
To use a custom HttpBinding to control the mapping between Camel message and HttpClient.
|
void |
setBridgeEndpoint(boolean bridge)
If the option is true, HttpProducer will ignore the Exchange.HTTP_URI header, and use the endpoint's URI for request.
|
void |
setChunked(boolean chunked)
If this option is false Jetty servlet will disable the HTTP streaming and set the content-length header on the response
|
void |
setCopyHeaders(boolean copyHeaders) |
void |
setDisableStreamCache(boolean disable)
Determines whether or not the raw input stream from Jetty is cached or not
(Camel will read the stream into a in memory/overflow to file, Stream caching) cache.
|
void |
setEagerCheckContentAvailable(boolean eagerCheckContentAvailable)
Whether to eager check whether the HTTP requests has content if the content-length header is 0 or not present.
|
void |
setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
To use a custom HeaderFilterStrategy to filter header to and from Camel message.
|
void |
setHttpMethodRestrict(String httpMethodRestrict)
Used to only allow consuming if the HttpMethod matches, such as GET/POST/PUT etc.
|
void |
setHttpUri(URI httpUri)
The url of the HTTP endpoint to call.
|
void |
setIgnoreResponseBody(boolean ignoreResponseBody)
If this option is true, The http producer won't read response body and cache the input stream.
|
void |
setMatchOnUriPrefix(boolean match)
Whether or not the consumer should try to find a target consumer by matching the URI prefix if no exact match is found.
|
void |
setOkStatusCodeRange(String okStatusCodeRange)
The status codes which is considered a success response.
|
void |
setProxyHost(String proxyHost)
The proxy host name
|
void |
setProxyPort(int proxyPort)
The proxy port number
|
void |
setResponseBufferSize(Integer responseBufferSize)
To use a custom buffer size on the javax.servlet.ServletResponse.
|
void |
setThrowExceptionOnFailure(boolean throwExceptionOnFailure)
Option to disable throwing the HttpOperationFailedException in case of failed responses from the remote server.
|
void |
setTraceEnabled(boolean traceEnabled)
Specifies whether to enable HTTP TRACE for this Jetty consumer.
|
void |
setTransferException(boolean transferException)
Option to disable throwing the HttpOperationFailedException in case of failed responses from the remote server.
|
void |
setUrlRewrite(UrlRewrite urlRewrite)
Refers to a custom org.apache.camel.component.http.UrlRewrite which allows you to rewrite urls when you bridge/proxy endpoints.
|
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public HttpCommonEndpoint()
public HttpCommonEndpoint(String endPointURI, HttpCommonComponent component, URI httpURI) throws URISyntaxException
URISyntaxException
public void connect(HttpConsumer consumer) throws Exception
Exception
public void disconnect(HttpConsumer consumer) throws Exception
Exception
public boolean isLenientProperties()
isLenientProperties
in interface org.apache.camel.Endpoint
isLenientProperties
in class org.apache.camel.impl.DefaultEndpoint
public boolean isSingleton()
isSingleton
in interface org.apache.camel.IsSingleton
public 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.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
getHeaderFilterStrategy
in interface org.apache.camel.spi.HeaderFilterStrategyAware
public void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
setHeaderFilterStrategy
in interface org.apache.camel.spi.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 String getProxyHost()
public void setProxyHost(String proxyHost)
public int getProxyPort()
public void setProxyPort(int proxyPort)
public String getAuthMethodPriority()
public void setAuthMethodPriority(String authMethodPriority)
public boolean isTransferException()
public void setTransferException(boolean transferException)
public boolean isTraceEnabled()
public void setTraceEnabled(boolean traceEnabled)
public String getHttpMethodRestrict()
public void setHttpMethodRestrict(String httpMethodRestrict)
public UrlRewrite getUrlRewrite()
public void setUrlRewrite(UrlRewrite urlRewrite)
public Integer getResponseBufferSize()
public void setResponseBufferSize(Integer responseBufferSize)
public boolean isIgnoreResponseBody()
public void setIgnoreResponseBody(boolean ignoreResponseBody)
public boolean isCopyHeaders()
public void setCopyHeaders(boolean copyHeaders)
public boolean isEagerCheckContentAvailable()
public void setEagerCheckContentAvailable(boolean eagerCheckContentAvailable)
public String getOkStatusCodeRange()
public void setOkStatusCodeRange(String okStatusCodeRange)
Apache Camel