|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.oroad.stxx.plugin.ActionMappingMatcher
Matches paths against pre-compiled wildcard expressions pulled from action mappings. It uses the wildcard matcher from the Apache Cocoon project. Copied from the Struts-wildcard project.
Field Summary | |
protected java.util.List |
compiledPaths
The compiled paths and their associated ActionMapping's |
protected static org.apache.commons.logging.Log |
log
The logging instance |
Constructor Summary | |
ActionMappingMatcher(org.apache.struts.config.ModuleConfig appConfig)
Finds and precompiles the wildcard patterns from the ActionMapping "path" attributes. |
Method Summary | |
protected org.apache.struts.action.ActionMapping |
convertActionMapping(java.lang.String path,
org.apache.struts.action.ActionMapping orig,
java.util.Map vars)
Clones the ActionMapping and its children, replacing various properties with the values of the wildcard-matched strings. |
protected java.lang.String |
convertParam(java.lang.String val,
java.util.Map vars)
Inserts into a value wildcard-matched strings where specified. |
org.apache.struts.action.ActionMapping |
match(java.lang.String path)
Matches the path against the compiled wildcard patterns. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final org.apache.commons.logging.Log log
protected java.util.List compiledPaths
Constructor Detail |
public ActionMappingMatcher(org.apache.struts.config.ModuleConfig appConfig)
appConfig
- The ModuleConfig we are associated withMethod Detail |
public org.apache.struts.action.ActionMapping match(java.lang.String path)
path
- The portion of the request URI for selecting a
mapping
IOException
- if an input/output error occursprotected org.apache.struts.action.ActionMapping convertActionMapping(java.lang.String path, org.apache.struts.action.ActionMapping orig, java.util.Map vars)
path
- The requested pathorig
- The original ActionMappingvars
- A Map of wildcard-matched strings
protected java.lang.String convertParam(java.lang.String val, java.util.Map vars)
val
- The value to convertvars
- A Map of wildcard-matched strings
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |