info.magnolia.voting.voters
Class RequestHeaderPatternRegexVoter

java.lang.Object
  extended by info.magnolia.voting.voters.BaseVoterImpl<T>
      extended by info.magnolia.voting.voters.AbstractBoolVoter<javax.servlet.http.HttpServletRequest>
          extended by info.magnolia.voting.voters.AbstractRequestHeaderPatternVoter
              extended by info.magnolia.voting.voters.RequestHeaderPatternRegexVoter
All Implemented Interfaces:
Voter<javax.servlet.http.HttpServletRequest>

public class RequestHeaderPatternRegexVoter
extends AbstractRequestHeaderPatternVoter

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 matches(String headerValue)
           
 void setPattern(String pattern)
           
 
Methods inherited from class info.magnolia.voting.voters.AbstractRequestHeaderPatternVoter
boolVote, getHeaderName, resolveRequestHeaderFromValue, setHeaderName
 
Methods inherited from class info.magnolia.voting.voters.AbstractBoolVoter
getFalseValue, getLevel, getTrueValue, isNot, setFalseValue, setLevel, setNot, setTrueValue, toString, 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

setPattern

public void setPattern(String pattern)

matches

protected boolean matches(String headerValue)
Specified by:
matches in class AbstractRequestHeaderPatternVoter


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.