com.caucho.rewrite
Class WelcomeFile

java.lang.Object
  extended by com.caucho.rewrite.AbstractDispatchRule
      extended by 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>
 


Constructor Summary
WelcomeFile()
           
WelcomeFile(java.util.ArrayList<java.lang.String> welcomeFile)
           
 
Method Summary
 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.
 
Methods inherited from class com.caucho.rewrite.AbstractDispatchRule
isRequest, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WelcomeFile

public WelcomeFile()

WelcomeFile

public WelcomeFile(java.util.ArrayList<java.lang.String> welcomeFile)
Method Detail

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 against
queryString - the request query string to match against
next - the next rewrite FilterChain dispatch
tail - the plain servlet/filter chain for a match
Throws:
ServletException