com.caucho.rewrite
Class MovedPermanently

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

@Configurable
public class MovedPermanently
extends AbstractTargetDispatchRule

Sends a HTTP moved-permanently response

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

   <resin:MovedPermanently regexp="^/hidden" target="/bar"/>

 </web-app>
 


Constructor Summary
MovedPermanently()
           
 
Method Summary
 FilterChain createDispatch(DispatcherType type, java.lang.String uri, java.lang.String queryString, java.lang.String target, FilterChain next)
           
 
Methods inherited from class com.caucho.rewrite.AbstractTargetDispatchRule
getTarget, init, rewriteDefault, rewriteTarget, setAbsoluteTarget, setTarget, setTargetHost
 
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

MovedPermanently

public MovedPermanently()
Method Detail

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