info.magnolia.voting.voters
Class RequestHeaderPatternRegexVoter

java.lang.Object
  extended by info.magnolia.voting.voters.BaseVoterImpl
      extended by info.magnolia.voting.voters.AbstractBoolVoter
          extended by info.magnolia.voting.voters.BasePatternVoter
              extended by info.magnolia.voting.voters.RequestHeaderPatternVoter
                  extended by 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):


Constructor Summary
RequestHeaderPatternRegexVoter()
           
 
Method Summary
protected  boolean boolVote(Object value)
           
 void setPattern(String pattern)
           
 
Methods inherited from class info.magnolia.voting.voters.RequestHeaderPatternVoter
getHeaderName, resolveRequestHeaderFromValue, setHeaderName
 
Methods inherited from class info.magnolia.voting.voters.BasePatternVoter
getPattern, init, isInverse, resolveURIFromValue, setInverse, setTrueValue, toString
 
Methods inherited from class info.magnolia.voting.voters.AbstractBoolVoter
getFalseValue, getLevel, getTrueValue, isNot, setFalseValue, setLevel, setNot, vote
 
Methods inherited from class info.magnolia.voting.voters.BaseVoterImpl
getName, isEnabled, setEnabled, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RequestHeaderPatternRegexVoter

public RequestHeaderPatternRegexVoter()
Method Detail

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.