public class RemoteUserCondition extends AbstractCondition
HttpServletRequest.getRemoteUser()
.Constructor and Description |
---|
RemoteUserCondition(java.lang.String remoteUser) |
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 the 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)
public boolean isMatch(HttpServletRequest request, HttpServletResponse response)
Condition