Expresso 5-5-0

com.jcorporate.expresso.core.misc
Class ConfigPathMapping

java.lang.Object
  extended bycom.jcorporate.expresso.core.misc.ConfigPathMapping

public class ConfigPathMapping
extends Object

Used for mapping URL paths. What is the pattern that matches this?


Constructor Summary
ConfigPathMapping()
           
 
Method Summary
 void addFixedParam(ConfigPathFixedParam newFixedParam)
           
 void addParam(ConfigPathParam newParam)
           
 org.apache.oro.text.regex.Pattern getCompiledUrlPattern()
          Returns the compiled Regular Expression Pattern instead of just the regular expression string.
 Vector getFixedParams()
           
 Vector getParams()
           
 String getPath()
           
 String getUrlPattern()
           
 void setPath(String newPath)
           
 void setUrlPattern(String newPattern)
          Sets the matching URL pattern and precompiles the expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigPathMapping

public ConfigPathMapping()
Method Detail

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()

Expresso 5-5-0

Please see www.jcorporate.com for information about new Expresso releases.