|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sunlabs.brazil.handler.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 |
equals, 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
|
Version 2.1, Generated 12/30/04 Copyright (c) 2001-2004, Sun Microsystems. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |