com.caucho.rewrite
Class Or

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

@Configurable
public class Or
extends java.lang.Object
implements RequestPredicate

Matches if any of the child predicates match.

 <resin:Allow url-pattern="/admin/*">
                  xmlns:resin="urn:java:com.caucho.resin">
   <resin:Or>
     <resin:IfNetwork value="192.168.1.10"/>
     <resin:IfNetwork value="192.168.1.11"/>
   </resin:Or>
 </resin:Allow>
 

RequestPredicates may be used for security and rewrite actions.


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

Or

public Or()
Method Detail

add

public void add(RequestPredicate predicate)
Add a child predicate. Any child must pass for Or 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