@Configurable public class Location extends AbstractRegexpDispatchRule
<web-app xmlns="http://caucho.com/ns/resin" xmlns:resin="urn:java:com.caucho.resin"> <resin:Location regexp="^/admin"> <resin:IfSecure/> <resin:SetHeader name="Foo" value="bar"/> </resin:Location> </web-app>
Constructor and Description |
---|
Location() |
Modifier and Type | Method and Description |
---|---|
void |
add(DispatchRule rule)
Adds a child dispatch rule
|
protected FilterChain |
createDispatch(DispatcherType type,
java.lang.String uri,
java.lang.String queryString,
java.lang.String target,
FilterChain next) |
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.
|
add, add, add, getRegexp, isFilter, isForward, isInclude, isRequest, rewriteTarget, rewriteUri, setRegexp, toString
public void add(DispatchRule rule)
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
map
in class AbstractRegexpDispatchRule
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
protected FilterChain createDispatch(DispatcherType type, java.lang.String uri, java.lang.String queryString, java.lang.String target, FilterChain next)
createDispatch
in class AbstractRegexpDispatchRule