com.caucho.rewrite
Class WelcomeFile
java.lang.Object
com.caucho.rewrite.AbstractDispatchRule
com.caucho.rewrite.WelcomeFile
- All Implemented Interfaces:
- DispatchRule
@Configurable
public class WelcomeFile
- extends AbstractDispatchRule
Manages the welcome-file as a rewrite-dispatch.
<web-app xmlns:resin="urn:java:com.caucho.resin">
<resin:WelcomeFile welcome-file="index.jsp"/>
</web-app>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
WelcomeFile
public WelcomeFile()
WelcomeFile
public WelcomeFile(java.util.ArrayList<java.lang.String> welcomeFile)
isInclude
public boolean isInclude()
- Specified by:
isInclude
in interface DispatchRule
- Overrides:
isInclude
in class AbstractDispatchRule
isForward
public boolean isForward()
- Specified by:
isForward
in interface DispatchRule
- Overrides:
isForward
in class AbstractDispatchRule
addWelcomeFile
public void addWelcomeFile(java.lang.String welcomeFile)
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
- Overrides:
rewriteUri
in class AbstractDispatchRule
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
- Overrides:
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 match
- Throws:
ServletException