com.jcorporate.expresso.core.misc
Class ConfigPathMapping
java.lang.Object
com.jcorporate.expresso.core.misc.ConfigPathMapping
- public class ConfigPathMapping
- extends Object
Used for mapping URL paths. What is the pattern that matches this?
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfigPathMapping
public ConfigPathMapping()
setUrlPattern
public void setUrlPattern(String newPattern)
- Sets the matching URL pattern and precompiles the expression.
- Parameters:
newPattern - the PERL regular expression pattern to match
- Throws:
IllegalArgumentException - if the regular expression fails to compile
setPath
public void setPath(String newPath)
getUrlPattern
public String getUrlPattern()
- Returns:
- the URL Pattern
getCompiledUrlPattern
public org.apache.oro.text.regex.Pattern getCompiledUrlPattern()
- Returns the compiled Regular Expression Pattern
instead of just the regular expression string.
- Returns:
- a Perl5 Pattern object
getPath
public String getPath()
addParam
public void addParam(ConfigPathParam newParam)
getParams
public Vector getParams()
addFixedParam
public void addFixedParam(ConfigPathFixedParam newFixedParam)
getFixedParams
public Vector getFixedParams()
Please see www.jcorporate.com for information about new Expresso releases.