|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.danube.http.matcher.AbstractMatcher org.abstracthorizon.danube.http.matcher.Pattern
public class Pattern
Implementation of Matcher
interface
that uses Pattern
for matching.
Field Summary | |
---|---|
protected String |
componentPath
Component path to be set when pattern is matched |
protected boolean |
matchAsComponentPath
Matches as component's path |
protected Pattern |
pattern
Precompiled pattern |
Fields inherited from class org.abstracthorizon.danube.http.matcher.AbstractMatcher |
---|
connectionHandler, stopOnMatch |
Constructor Summary | |
---|---|
Pattern()
Constructor |
Method Summary | |
---|---|
void |
adjustForInvocation(HTTPConnection httpConnection)
Adjusts connection for nested connection handler to be invoked |
Pattern |
getCompiledPattern()
Returns precompiled pattern |
String |
getComponentPath()
Returns component path |
String |
getPattern()
Returns pattern as a String |
boolean |
isMatchAsComponentPath()
|
boolean |
matches(HTTPConnection httpConnection)
Uses precompiled pattern to match URI from http conneciton |
void |
setCompiledPattern(Pattern pattern)
Sets precompiled pattern |
void |
setComponentPath(String componentPath)
Sets component path. |
void |
setMatchAsComponentPath(boolean matchAsComponentPath)
|
void |
setPattern(String pattern)
Sets pattern as a String |
Methods inherited from class org.abstracthorizon.danube.http.matcher.AbstractMatcher |
---|
getConnectionHandler, isStopOnMatch, setConnectionHandler, setStopOnMatch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Pattern pattern
protected String componentPath
protected boolean matchAsComponentPath
Constructor Detail |
---|
public Pattern()
Method Detail |
---|
public Pattern getCompiledPattern()
public void setCompiledPattern(Pattern pattern)
pattern
- precompiled patternpublic String getPattern()
public void setPattern(String pattern)
pattern
- pattern as a Stringpublic String getComponentPath()
public void setComponentPath(String componentPath)
componentPath
- component pathpublic boolean matches(HTTPConnection httpConnection)
httpConnection
- http connection
true
if uri from connection is matchedpublic void adjustForInvocation(HTTPConnection httpConnection)
connection
- connection to be a usedpublic boolean isMatchAsComponentPath()
public void setMatchAsComponentPath(boolean matchAsComponentPath)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |