info.magnolia.voting.voters
Class RequestHeaderPatternSimpleVoter

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.RequestHeaderPatternSimpleVoter
All Implemented Interfaces:
Voter<javax.servlet.http.HttpServletRequest>

public class RequestHeaderPatternSimpleVoter
extends AbstractRequestHeaderPatternVoter

Checks if the specified request header matches a specific pattern.

Parameters (as Magnolia's configuration nodes):


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

RequestHeaderPatternSimpleVoter

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