|
![]() |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsunlabs.brazil.util.MatchString (view source)
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.
Field Summary | |
---|---|
static String |
defaultPrefix
The default URL prefix. |
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 |
Field Detail |
---|
public static String defaultPrefix
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 Kenai-svn-r24, Generated 08/18/09 Copyright (c) 2001-2009, Sun Microsystems. |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |