@Configurable public class And extends java.lang.Object implements RequestPredicate
<resin:Dispatch url-pattern="/admin/*"> xmlns:resin="urn:java:com.caucho.resin"> <resin:And> <resin:IfNetwork value="192.168.1.10"/> <resin:IfRole/> </resin:And> </resin:Dispatch>
Constructor and Description |
---|
And() |
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 RequestPredicate
request
- the servlet request to testpublic java.lang.String toString()
toString
in class java.lang.Object