info.magnolia.voting.voters
Class RequestHeaderPatternSimpleVoter

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.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):


Constructor Summary
RequestHeaderPatternSimpleVoter()
           
 
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

RequestHeaderPatternSimpleVoter

public RequestHeaderPatternSimpleVoter()
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.