public class HandleRedirectionCommand extends AbstractProxyCommand
Command
responsible for handling HTTP Redirection response from the remote target content.
This tries to translate the Location
HTTP response header value to a local path info
by using the currently resolved ProxyMapping
first.
If it cannot resolve the mapped local path info from the currently resolved ProxyMapping
,
then it tries to translate the Location
HTTP response header value to a local path info
by invoking ProxyMappingRegistry.findProxyMappingByRemoteURI(URI)
afterward.
Constructor and Description |
---|
HandleRedirectionCommand() |
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.