com.caucho.rewrite
Class Forward

java.lang.Object
  extended by com.caucho.rewrite.AbstractDispatchRule
      extended by com.caucho.rewrite.AbstractRegexpDispatchRule
          extended by com.caucho.rewrite.Forward
All Implemented Interfaces:
DispatchRule

@Configurable
public class Forward
extends AbstractRegexpDispatchRule

Forwards a requests using the servlet RequestDispatcher.forward call protocol.

 <web-app xmlns:resin="urn:java:com.caucho.resin">

   <resin:Forward regexp="^/foo" target="/bar"/>

 </web-app>
 


Constructor Summary
Forward()
           
 
Method Summary
 FilterChain createDispatch(DispatcherType type, java.lang.String uri, java.lang.String queryString, java.lang.String target, FilterChain next)
           
 void init()
           
protected  java.lang.String rewriteTarget(java.util.regex.Matcher matcher, java.lang.String uri, java.lang.String queryString)
           
 void setAbsoluteTarget(java.lang.String target)
           
 void setTarget(java.lang.String target)
           
 void setTargetHost(java.lang.String target)
           
 
Methods inherited from class com.caucho.rewrite.AbstractRegexpDispatchRule
add, add, add, getRegexp, isFilter, isForward, isInclude, isRequest, map, rewriteUri, setRegexp, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Forward

public Forward()
Method Detail

setTarget

@Configurable
public void setTarget(java.lang.String target)

setAbsoluteTarget

@Configurable
public void setAbsoluteTarget(java.lang.String target)

setTargetHost

@Configurable
public void setTargetHost(java.lang.String target)

rewriteTarget

protected java.lang.String rewriteTarget(java.util.regex.Matcher matcher,
                                         java.lang.String uri,
                                         java.lang.String queryString)
Overrides:
rewriteTarget in class AbstractRegexpDispatchRule

init

public void init()
          throws ConfigException
Throws:
ConfigException

createDispatch

public FilterChain createDispatch(DispatcherType type,
                                  java.lang.String uri,
                                  java.lang.String queryString,
                                  java.lang.String target,
                                  FilterChain next)
Overrides:
createDispatch in class AbstractRegexpDispatchRule