public abstract class AbstractRequestHeaderPatternVoter extends AbstractBoolVoter<javax.servlet.http.HttpServletRequest>
Constructor and Description |
---|
AbstractRequestHeaderPatternVoter() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
boolVote(javax.servlet.http.HttpServletRequest value) |
String |
getHeaderName() |
protected abstract boolean |
matches(String value) |
protected String |
resolveRequestHeaderFromValue(javax.servlet.http.HttpServletRequest value,
String headerName)
Retrieve the value of the specified header from the request.
|
void |
setHeaderName(String headerName) |
getFalseValue, getLevel, getTrueValue, isNot, setFalseValue, setLevel, setNot, setTrueValue, toString, vote
getName, isEnabled, setEnabled, setName
public void setHeaderName(String headerName)
public String getHeaderName()
protected boolean boolVote(javax.servlet.http.HttpServletRequest value)
boolVote
in class AbstractBoolVoter<javax.servlet.http.HttpServletRequest>
protected String resolveRequestHeaderFromValue(javax.servlet.http.HttpServletRequest value, String headerName)
protected abstract boolean matches(String value)
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.