public class UserAgentVoter extends AbstractBoolVoter
request
object against a list of allowed and/or rejected user agents.
Typed to Object, as it can vote on both a passed HttpServletRequest,
or the current MgnlContext.webContext if any.Constructor and Description |
---|
UserAgentVoter() |
Modifier and Type | Method and Description |
---|---|
void |
addAllowed(String contentType) |
void |
addRejected(String contentType) |
protected boolean |
boolVote(Object value) |
List<String> |
getAllowed() |
List<String> |
getRejected() |
void |
setAllowed(List<String> allowed) |
void |
setRejected(List<String> rejected) |
getFalseValue, getLevel, getTrueValue, isNot, setFalseValue, setLevel, setNot, setTrueValue, toString, vote
getName, isEnabled, setEnabled, setName
public void addAllowed(String contentType)
public void addRejected(String contentType)
protected boolean boolVote(Object value)
boolVote
in class AbstractBoolVoter
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.