public class UserInRoleCondition extends AbstractCondition
HttpServletRequest.isUserInRole(String)
Constructor and Description |
---|
UserInRoleCondition(java.lang.String role) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTagName()
Returns a descriptive name for the tag, for logging and for
error messages.
|
boolean |
isMatch(HttpServletRequest request,
HttpServletResponse response)
Returns true if the condition passes.
|
void |
setSendVary(boolean sendVary)
If true, send a
Vary: Cookie in response, default is true. |
addHeaderValue, destroy, init, required
public java.lang.String getTagName()
Condition
getTagName
in interface Condition
getTagName
in class AbstractCondition
public void setSendVary(boolean sendVary)
Vary: Cookie
in response, default is true.public boolean isMatch(HttpServletRequest request, HttpServletResponse response)
Condition