@Configurable public class Or extends java.lang.Object implements RequestPredicate
<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 and Description |
---|
Or() |
Modifier and Type | Method and Description |
---|---|
void |
add(RequestPredicate predicate)
Add a child predicate.
|
void |
init() |
boolean |
isMatch(HttpServletRequest request)
True if the predicate matches.
|
java.lang.String |
toString() |
public void add(RequestPredicate predicate)
predicate
- the child predicate@PostConstruct public void init()
public boolean isMatch(HttpServletRequest request)
isMatch
in interface RequestPredicate
request
- the servlet request to testpublic java.lang.String toString()
toString
in class java.lang.Object