com.caucho.rewrite
Class AbstractDispatchRule

java.lang.Object
  extended by com.caucho.rewrite.AbstractDispatchRule
All Implemented Interfaces:
DispatchRule
Direct Known Subclasses:
AbstractRegexpDispatchRule, WelcomeFile

public abstract class AbstractDispatchRule
extends java.lang.Object
implements DispatchRule


Constructor Summary
AbstractDispatchRule()
           
 
Method Summary
 boolean isForward()
           
 boolean isInclude()
           
 boolean isRequest()
           
 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.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractDispatchRule

public AbstractDispatchRule()
Method Detail

isRequest

public boolean isRequest()
Specified by:
isRequest in interface DispatchRule

isInclude

public boolean isInclude()
Specified by:
isInclude in interface DispatchRule

isForward

public boolean isForward()
Specified by:
isForward in interface DispatchRule

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

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
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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object