java.lang.Objectorg.apache.commons.chain.generic.LookupCommand
All Implemented Interfaces:
Filter
Direct Known Subclasses:
PathInfoMapper, RequestParameterMapper, DispatchLookupCommand, ServletPathMapper
Look up a specified Command (which could also be a
org.apache.commons.chain.Chain )
in a Catalog , and delegate execution to it. If the delegated-to
Command is also a Filter , its postprocess()
method will also be invoked at the appropriate time.
The name of the Command can be specified either directly (via
the name property) or indirectly (via the nameKey
property). Exactly one of these must be set.
If the optional property is set to true,
failure to find the specified command in the specified catalog will be
silently ignored. Otherwise, a lookup failure will trigger an
IllegalArgumentException.
Craig - R. McClanahan$ - Revision: 532951 $ $Date: 2007-04-27 04:59:00 +0100 (Fri, 27 Apr 2007) $| Constructor: |
|---|
catalogFactory property to the
value of CatalogFactory.getInstance().
|
catalogFactory property
to given factory/
|
| Method from org.apache.commons.chain.generic.LookupCommand Summary: |
|---|
| execute, getCatalog, getCatalogFactory, getCatalogName, getCommand, getCommandName, getName, getNameKey, isIgnoreExecuteResult, isIgnorePostprocessResult, isOptional, postprocess, setCatalogFactory, setCatalogName, setIgnoreExecuteResult, setIgnorePostprocessResult, setName, setNameKey, setOptional |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.commons.chain.generic.LookupCommand Detail: |
|---|
Look up the specified command, and (if found) execute it.
Unless |
|
|
|
Return the Command instance to be delegated to. |
Return the name of the Command instance to be delegated to. |
Return the name of the Command that we will look up and delegate execution to. |
Return the context attribute key under which the Command name is stored. |
Return |
Return |
Return |
|
Set the CatalogFactory from which lookups will be performed. |
|
Set the rules for whether or not this class will ignore or pass through the value returned from executing the looked up command. If you are looking up a chain which may be "aborted" and
you do not want this class to stop chain processing, then this
value should be set to |
Set the rules for whether or not this class will ignore or
pass through the value returned from executing the looked up
Filter's If you are looking up a Filter which may be "aborted" and
you do not want this class to stop chain processing, then this
value should be set to |
Set the name of the Command that we will look up and delegate execution to. |
Set the context attribute key under which the Command name is stored. |
Set the optional flag for finding the specified command. |