|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.enunciate.util.AntPatternMatcher
public class AntPatternMatcher
Ant-style pattern matcher. By default, this matcher matches on FQN, so the path separator is the '.'. This code was kindly borrowed from the Spring Framework, which in turn borrowed it from Apache Ant.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_PATH_SEPARATOR
Default path separator: "." |
| Constructor Summary | |
|---|---|
AntPatternMatcher()
|
|
| Method Summary | |
|---|---|
protected boolean |
doMatch(java.lang.String pattern,
java.lang.String path,
boolean fullMatch)
Actually match the given path against the given pattern. |
boolean |
isPattern(java.lang.String path)
Whether this is a pattern. |
boolean |
match(java.lang.String pattern,
java.lang.String path)
|
void |
setPathSeparator(java.lang.String pathSeparator)
Set the path separator to use for pattern parsing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_PATH_SEPARATOR
| Constructor Detail |
|---|
public AntPatternMatcher()
| Method Detail |
|---|
public void setPathSeparator(java.lang.String pathSeparator)
pathSeparator - The path separator.public boolean isPattern(java.lang.String path)
path - The pattern.
public boolean match(java.lang.String pattern,
java.lang.String path)
protected boolean doMatch(java.lang.String pattern,
java.lang.String path,
boolean fullMatch)
path against the given pattern.
pattern - the pattern to match againstpath - the path String to testfullMatch - whether a full pattern match is required
(else a pattern match as far as the given base path goes is sufficient)
true if the supplied path matched,
false if it didn't
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||