public abstract class AbstractProxyCommand extends Object implements org.apache.commons.chain.Command
Command base class encapsulating a unit of
reverse proxy processing work to be performed, whose purpose is
to support life cycle management with
destroy() methods, and to examine and/or modify the state of a
reverse proxy transaction that is represented by a
AbstractProxyCommands can be assembled into a
which allows them to either complete the required processing or delegate further
processing to the next
AbstractProxyCommand in the
AbstractProxyCommand implementations should be designed in a thread-safe
manner, suitable for inclusion in multiple
ProxyProcessingChains that might be
processed by different threads simultaneously.
|Constructor and Description|
|Modifier and Type||Method and Description|
Invokes this method to give this proxy command a chance to dispose any resource used in reverse proxy processing.
Execute a unit of processing work to be performed.
Initializes the proxy command before using in a proxy processing chain.
public void initialize()
public final boolean execute(org.apache.commons.chain.Context context) throws ReverseProxyException, IOException
protected abstract boolean executeInternal(ProxyContext context) throws ReverseProxyException, IOException
Execute a unit of processing work to be performed. This
AbstractProxyCommand may either complete the required processing
true, or delegate remaining processing
to the next
AbstractProxyCommand in a
ProxyProcessingChain containing this
AbstractProxyCommand by returning
public void destroy()
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.