info.magnolia.voting.voters
Class ResponseContentTypeVoter
java.lang.Object
info.magnolia.voting.voters.BaseVoterImpl
info.magnolia.voting.voters.AbstractBoolVoter
info.magnolia.voting.voters.ResponseContentTypeVoter
- All Implemented Interfaces:
- Voter
public class ResponseContentTypeVoter
- extends AbstractBoolVoter
A voter which checks the content type set on the response
object against a list of allowed and/or rejected content types.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
ResponseContentTypeVoter
public ResponseContentTypeVoter()
getAllowed
public List<String> getAllowed()
setAllowed
public void setAllowed(List<String> allowed)
addAllowed
public void addAllowed(String contentType)
getRejected
public List<String> getRejected()
setRejected
public void setRejected(List<String> rejected)
addRejected
public void addRejected(String contentType)
boolVote
protected boolean boolVote(Object value)
- Specified by:
boolVote
in class AbstractBoolVoter
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.