|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsunlabs.brazil.util.MatchString
public class MatchString
Utility class for handlers to determine, based on the URL, if the current request should be processed.
Properties:
prefix
and suffix
.
glob
.
match
is defined, this causes the
regular expression match to be case insensitive. By default, case counts.
Constructor Summary | |
---|---|
MatchString(String propsPrefix)
Create a matcher for per-request URL checking. |
|
MatchString(String propsPrefix,
Properties props)
Create a matcher for one-time-only checking. |
Method Summary | |
---|---|
boolean |
match(String url)
See if this is our url. |
boolean |
match(String url,
Properties props)
See if this is our url. |
String |
prefix()
Return our prefix |
String |
toString()
print nicely |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MatchString(String propsPrefix)
propsPrefix
- The prefix to use in the properties object.public MatchString(String propsPrefix, Properties props)
propsPrefix
- The prefix to use in the properties object.props
- The table to find the properties in.Method Detail |
---|
public boolean match(String url)
public boolean match(String url, Properties props)
public String prefix()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |