@Configurable public class IfUserInRole extends java.lang.Object implements RequestPredicate
<resin:Allow url-pattern="/admin/*">
xmlns:resin="urn:java:com.caucho.resin">
<resin:IfUserInRole role="admin"/>
</resin:Allow>
RequestPredicates may be used for security and rewrite actions.
| Constructor and Description |
|---|
IfUserInRole() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRole(java.lang.String role)
Adds a role to check.
|
boolean |
isMatch(HttpServletRequest request)
True if the predicate matches.
|
java.lang.String |
toString() |
@Configurable public void addRole(java.lang.String role)
public boolean isMatch(HttpServletRequest request)
isMatch in interface RequestPredicaterequest - the servlet request to testpublic java.lang.String toString()
toString in class java.lang.Object