|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.rewrite.Not
@Configurable public class Not
True if the child predicate is false.
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 Summary | |
---|---|
Not()
|
|
Not(RequestPredicate predicate)
|
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 |
---|
public Not()
public Not(RequestPredicate predicate)
Method Detail |
---|
@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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |