com.caucho.rewrite
Class NotAnd

java.lang.Object
  extended by com.caucho.rewrite.NotAnd
All Implemented Interfaces:
RequestPredicate

public class NotAnd
extends java.lang.Object
implements RequestPredicate

Matches if all of the child predicates fail. The predicate may be used for security and rewrite actions.

 <resin:Forbidden url-pattern="/admin/*"
                  xmlns:resin="urn:java:com.caucho.resin">
   <resin:NotAnd>
     <resin:IfRole name="admin"/>
     <resin:IfNetwork value="192.168/16"/>
   </resin:NotAnd>
 </resin:Allow>
 


Constructor Summary
NotAnd()
           
 
Method Summary
 void add(RequestPredicate predicate)
          Add a child predicate.
 void init()
           
 boolean isMatch(HttpServletRequest request)
          True if the predicate matches.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotAnd

public NotAnd()
Method Detail

add

@Configurable
public void add(RequestPredicate predicate)
Add a child predicate. One child must fail for NotAnd to pass.

Parameters:
predicate - the child predicate

init

@PostConstruct
public void init()

isMatch

public boolean isMatch(HttpServletRequest request)
True if the predicate matches.

Specified by:
isMatch in interface RequestPredicate
Parameters:
request - the servlet request to test

toString

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