public class ExecuteHttpClientCommand extends AbstractProxyCommand
Command responsible for executing the internal HttpClient
with the HttpRequestBase instance.
If getHttpClientContextBuilder() returns a non-null instance, then
this command executes the internal HttpClient
with the HttpRequestBase instance and a HttpContext built by
getHttpClientContextBuilder().
| Constructor and Description |
|---|
ExecuteHttpClientCommand() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
executeInternal(ProxyContext context)
Execute a unit of processing work to be performed.
|
HttpClientContextBuilder |
getHttpClientContextBuilder()
Returns the internal
HttpClientContextBuilder. |
void |
setHttpClientContextBuilder(HttpClientContextBuilder httpClientContextBuilder)
Sets the internal
HttpClientContextBuilder. |
destroy, execute, initializeprotected boolean executeInternal(ProxyContext context) throws ReverseProxyException, IOException
Execute a unit of processing work to be performed. This
AbstractProxyCommand may either complete the required processing
and return true, or delegate remaining processing
to the next AbstractProxyCommand in a ProxyProcessingChain containing this
AbstractProxyCommand by returning false.
executeInternal in class AbstractProxyCommandReverseProxyExceptionIOExceptionpublic HttpClientContextBuilder getHttpClientContextBuilder()
HttpClientContextBuilder.public void setHttpClientContextBuilder(HttpClientContextBuilder httpClientContextBuilder)
HttpClientContextBuilder.httpClientContextBuilder - Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.