Home » commons-chain-1.2-src » org.apache.commons » chain » web » servlet » [javadoc | source]
org.apache.commons.chain.web.servlet
public class: PathInfoMapper [javadoc | source]
java.lang.Object
   org.apache.commons.chain.generic.LookupCommand
      org.apache.commons.chain.web.servlet.PathInfoMapper

All Implemented Interfaces:
    Command, Filter

Command that uses the "path info" component of the request URI to select a Command from the appropriate Catalog , and execute it. To use this command, you would typically map an instance of ChainProcessor to a wildcard pattern like "/execute/*" and then arrange that this is the default command to be executed. In such an environment, a request for the context-relative URI "/execute/foo" would cause the "/foo" command to be loaded and executed.

Method from org.apache.commons.chain.web.servlet.PathInfoMapper Summary:
getCatalog,   getCatalogKey,   getCommandName,   setCatalogKey
Methods from org.apache.commons.chain.generic.LookupCommand:
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.web.servlet.PathInfoMapper Detail:
 protected Catalog getCatalog(Context context) 
 public String getCatalogKey() 
Deprecated! Use - catalogName to specify the name of the catalog in the catalog factory

    Return the context key under which our Catalog has been stored.

 protected String getCommandName(Context context) 

    Look up the extra path information for this request, and use it to select an appropriate Command to be executed.

 public  void setCatalogKey(String catalogKey) 
Deprecated! Use - catalogName to specify the name of the catalog in the catalog factory

    Set the context key under which our Catalog has been stored.