@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, toStringpublic void add(DispatchRule rule)
public FilterChain map(DispatcherType type, java.lang.String uri, java.lang.String queryString, FilterChain next, FilterChain tail) throws ServletException
DispatchRuletail, and mismatching
requests will use next. tail is the
plain servlet/filter chain without any rewriting. next
is the next rewrite dispatchmap in interface DispatchRulemap in class AbstractRegexpDispatchRuleuri - 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 matchServletExceptionprotected FilterChain createDispatch(DispatcherType type, java.lang.String uri, java.lang.String queryString, java.lang.String target, FilterChain next)
createDispatch in class AbstractRegexpDispatchRule