@Configurable public class NotOr extends java.lang.Object implements RequestPredicate
<resin:Allow url-pattern="/admin/*"
xmlns:resin="urn:java:com.caucho.resin">
<resin:NotOr>
<resin:IfNetwork value="192.168.1.10"/>
<resin:IfNetwork value="192.168.1.11"/>
</resin:NotOr>
</resin:Allow>
| Constructor and Description |
|---|
NotOr() |
| 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() |
@Configurable public void add(RequestPredicate predicate)
predicate - the new child predicate@PostConstruct public void init()
public boolean isMatch(HttpServletRequest request)
isMatch in interface RequestPredicaterequest - the servlet request to testpublic java.lang.String toString()
toString in class java.lang.Object