public class NotAnd extends java.lang.Object implements RequestPredicate
<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 and Description |
---|
NotAnd() |
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 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