public class InitHttpClientCommand extends AbstractProxyCommand
Command
responsible for initializing the HttpClient
instance
which is used to invoke the resolved remote target URI.Constructor and Description |
---|
InitHttpClientCommand() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
executeInternal(ProxyContext context)
Execute a unit of processing work to be performed.
|
org.apache.http.impl.client.HttpClientBuilder |
getHttpClientBuilder()
Returns internal
HttpClientBuilder instance. |
void |
setHttpClientBuilder(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder)
Sets internal
HttpClientBuilder instance. |
destroy, execute, initialize
protected 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 AbstractProxyCommand
ReverseProxyException
IOException
public org.apache.http.impl.client.HttpClientBuilder getHttpClientBuilder()
HttpClientBuilder
instance.public void setHttpClientBuilder(org.apache.http.impl.client.HttpClientBuilder httpClientBuilder)
HttpClientBuilder
instance.httpClientBuilder
- Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.