@Configurable public class Not extends java.lang.Object implements RequestPredicate
Complex tests can be built using <resin:Not>, <resin:And> and <resin:Or> on top of simpler primary predicates.
<web-app xmlns:resin="urn:java:com.caucho.resin"> <resin:Forbidden regexp="^/local/"> <resin:Not> <resin:IfAddress value="192.168.1.10"/> </resin:Not> </resin:Forbidden> </web-app>
Predicates may be used for security and rewrite actions.
Constructor and Description |
---|
Not() |
Not(RequestPredicate predicate) |
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 Not()
public Not(RequestPredicate predicate)
@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