@Configurable public class WelcomeFile extends AbstractDispatchRule
<web-app xmlns:resin="urn:java:com.caucho.resin"> <resin:WelcomeFile welcome-file="index.jsp"/> </web-app>
Constructor and Description |
---|
WelcomeFile() |
WelcomeFile(java.util.ArrayList<java.lang.String> welcomeFile) |
Modifier and Type | Method and Description |
---|---|
void |
addWelcomeFile(java.lang.String welcomeFile) |
boolean |
isForward() |
boolean |
isInclude() |
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.
|
isRequest, toString
public WelcomeFile()
public WelcomeFile(java.util.ArrayList<java.lang.String> welcomeFile)
public boolean isInclude()
isInclude
in interface DispatchRule
isInclude
in class AbstractDispatchRule
public boolean isForward()
isForward
in interface DispatchRule
isForward
in class AbstractDispatchRule
public void addWelcomeFile(java.lang.String welcomeFile)
public java.lang.String rewriteUri(java.lang.String uri, java.lang.String queryString)
DispatchRule
rewriteUri
in interface DispatchRule
rewriteUri
in class AbstractDispatchRule
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 AbstractDispatchRule
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