@Configurable public class IfSecure extends java.lang.Object implements RequestPredicate
<resin:Allow url-pattern="/admin/*"> xmlns:resin="urn:java:com.caucho.resin"> <resin:IfSecure/> </resin:Allow>
RequestPredicates may be used for security and rewrite actions.
Constructor and Description |
---|
IfSecure() |
Modifier and Type | Method and Description |
---|---|
boolean |
isMatch(HttpServletRequest request)
True if the predicate matches.
|
void |
setValue(boolean value)
Sets the secure value to test against.
|
@Configurable public void setValue(boolean value)
public boolean isMatch(HttpServletRequest request)
isMatch
in interface RequestPredicate
request
- the servlet request to test