info.magnolia.voting.voters
Class RequestHeaderPatternSimpleVoter
java.lang.Object
info.magnolia.voting.voters.BaseVoterImpl
info.magnolia.voting.voters.AbstractBoolVoter
info.magnolia.voting.voters.BasePatternVoter
info.magnolia.voting.voters.RequestHeaderPatternVoter
info.magnolia.voting.voters.RequestHeaderPatternSimpleVoter
- All Implemented Interfaces:
- Voter
public class RequestHeaderPatternSimpleVoter
- extends RequestHeaderPatternVoter
Checks if the specified request header matches a specific pattern.
Parameters (as Magnolia's configuration nodes):
- pattern: a pattern compliant to
SimpleUrlPattern
- headerName: the name of the request header to evaluate.
RequestHeaderPatternSimpleVoter
public RequestHeaderPatternSimpleVoter()
boolVote
protected boolean boolVote(Object value)
- Specified by:
boolVote
in class AbstractBoolVoter
setPattern
public void setPattern(String pattern)
- Overrides:
setPattern
in class BasePatternVoter
Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.