info.magnolia.voting.voters
Class UserAgentVoter
java.lang.Object
info.magnolia.voting.voters.BaseVoterImpl
info.magnolia.voting.voters.AbstractBoolVoter
info.magnolia.voting.voters.UserAgentVoter
- All Implemented Interfaces:
- Voter
public class UserAgentVoter
- extends AbstractBoolVoter
A voter which checks the user agent header in request
object against a list of allowed and/or rejected user agents.
- Version:
- $Revision: $ ($Author: $)
- Author:
- had
UserAgentVoter
public UserAgentVoter()
getAllowed
public List getAllowed()
addAllowed
public void addAllowed(String contentType)
getRejected
public List getRejected()
addRejected
public void addRejected(String contentType)
boolVote
protected boolean boolVote(Object value)
- Specified by:
boolVote
in class AbstractBoolVoter
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.