com.caucho.rewrite
Class Forbidden

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.Forbidden
All Implemented Interfaces:
DispatchRule

@Configurable
public class Forbidden
extends AbstractTargetDispatchRule

Sends a HTTP Forbidden response using response.sendError(SC_FORBIDDEN).

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

   <resin:Forbidden regexp="^/hidden"/>

 </web-app>
 


Constructor Summary
Forbidden()
           
 
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

Forbidden

public Forbidden()
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