|
||||||||||
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.Prefix
public class Prefix
This matcher checks prefix of http URI. If URI starts with given prefix and follow character is "/" or "?" or URI is exactly the same length as prefix then it returns positive match
Field Summary | |
---|---|
protected String |
prefix
Prefix |
Fields inherited from class org.abstracthorizon.danube.http.matcher.AbstractMatcher |
---|
connectionHandler, stopOnMatch |
Constructor Summary | |
---|---|
Prefix()
Constructor |
|
Prefix(ConnectionHandler connectionHandler,
boolean stopOnMatch,
String prefix)
Constructor |
|
Prefix(ConnectionHandler connectionHandler,
String prefix)
Constrcutor |
Method Summary | |
---|---|
void |
adjustForInvocation(HTTPConnection httpConnection)
Adjusts connection for nested connection handler to be invoked |
String |
getPrefix()
Returns prefix |
boolean |
matches(HTTPConnection httpConnection)
This matcher checks prefix of requested path. |
void |
setPrefix(String prefix)
Sets prefix |
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 String prefix
Constructor Detail |
---|
public Prefix()
public Prefix(ConnectionHandler connectionHandler, String prefix)
connectionHandler
- connection handlerprefix
- prefixpublic Prefix(ConnectionHandler connectionHandler, boolean stopOnMatch, String prefix)
connectionHandler
- connection handlerstopOnMatch
- stop on matchprefix
- prefixMethod Detail |
---|
public String getPrefix()
public void setPrefix(String prefix)
prefix
- prefixpublic boolean matches(HTTPConnection httpConnection)
httpConnection
- http connection
true
if uri from connection is matchedpublic void adjustForInvocation(HTTPConnection httpConnection)
connection
- connection to be a used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |