public class AddHeaderToHttpRequestCommand extends AbstractProxyCommand
Command
responsible for copying all the original HTTP request headers
to the internally created HttpRequestBase
instance.
The following HTTP headers are excluded during the copy:
Content-Length
Host
Constructor and Description |
---|
AddHeaderToHttpRequestCommand() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
executeInternal(ProxyContext context)
Execute a unit of processing work to be performed.
|
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
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.