com.caucho.rewrite
Class AbstractDispatchRule
java.lang.Object
com.caucho.rewrite.AbstractDispatchRule
- All Implemented Interfaces:
- DispatchRule
- Direct Known Subclasses:
- AbstractRegexpDispatchRule, WelcomeFile
public abstract class AbstractDispatchRule
- extends java.lang.Object
- implements DispatchRule
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractDispatchRule
public AbstractDispatchRule()
isRequest
public boolean isRequest()
- Specified by:
isRequest
in interface DispatchRule
isInclude
public boolean isInclude()
- Specified by:
isInclude
in interface DispatchRule
isForward
public boolean isForward()
- Specified by:
isForward
in interface DispatchRule
rewriteUri
public java.lang.String rewriteUri(java.lang.String uri,
java.lang.String queryString)
- Description copied from interface:
DispatchRule
- Rewrites the URI for further processing. Rules following the current
one will use the new URI.
- Specified by:
rewriteUri
in interface DispatchRule
map
public FilterChain map(DispatcherType type,
java.lang.String uri,
java.lang.String queryString,
FilterChain next,
FilterChain tail)
throws ServletException
- Description copied from interface:
DispatchRule
- Creates a FilterChain for the action based on the uri and query string.
Matching requests will use
tail
, and mismatching
requests will use next
. tail
is the
plain servlet/filter chain without any rewriting. next
is the next rewrite dispatch
- Specified by:
map
in interface DispatchRule
uri
- the request URI to match againstqueryString
- the request query string to match againstnext
- the next rewrite FilterChain dispatchtail
- the plain servlet/filter chain for a match
- Throws:
ServletException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object