public abstract class AbstractDispatchRule extends java.lang.Object implements DispatchRule
Constructor and Description |
---|
AbstractDispatchRule() |
Modifier and Type | Method and Description |
---|---|
boolean |
isForward() |
boolean |
isInclude() |
boolean |
isRequest() |
FilterChain |
map(DispatcherType type,
java.lang.String uri,
java.lang.String queryString,
FilterChain next,
FilterChain tail)
Creates a FilterChain for the action based on the uri and query string.
|
java.lang.String |
rewriteUri(java.lang.String uri,
java.lang.String queryString)
Rewrites the URI for further processing.
|
java.lang.String |
toString() |
public boolean isRequest()
isRequest
in interface DispatchRule
public boolean isInclude()
isInclude
in interface DispatchRule
public boolean isForward()
isForward
in interface DispatchRule
public java.lang.String rewriteUri(java.lang.String uri, java.lang.String queryString)
DispatchRule
rewriteUri
in interface DispatchRule
public FilterChain map(DispatcherType type, java.lang.String uri, java.lang.String queryString, FilterChain next, FilterChain tail) throws ServletException
DispatchRule
tail
, and mismatching
requests will use next
. tail
is the
plain servlet/filter chain without any rewriting. next
is the next rewrite dispatchmap
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 matchServletException
public java.lang.String toString()
toString
in class java.lang.Object