info.magnolia.voting.voters
Class RequestHeaderPatternRegexVoter
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.RequestHeaderPatternRegexVoter
- All Implemented Interfaces:
- Voter
public class RequestHeaderPatternRegexVoter
- extends RequestHeaderPatternVoter
A voter taking a plain regex pattern which has to matched against the specified request header.
Parameters (as Magnolia's configuration nodes):
- pattern: a regex pattern
- headerName: the name of the request header to evaluate.
RequestHeaderPatternRegexVoter
public RequestHeaderPatternRegexVoter()
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.