info.magnolia.voting.voters
Class RequestHeaderPatternVoter

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
All Implemented Interfaces:
Voter
Direct Known Subclasses:
RequestHeaderPatternRegexVoter, RequestHeaderPatternSimpleVoter

public abstract class RequestHeaderPatternVoter
extends BasePatternVoter

Voters which match the request headers against a pattern.


Constructor Summary
RequestHeaderPatternVoter()
           
 
Method Summary
 String getHeaderName()
           
protected  String resolveRequestHeaderFromValue(Object value, String headerName)
          Retrieve the value of the specified header from the request.
 void setHeaderName(String headerName)
           
 
Methods inherited from class info.magnolia.voting.voters.BasePatternVoter
getPattern, init, isInverse, resolveURIFromValue, setInverse, setPattern, setTrueValue, toString
 
Methods inherited from class info.magnolia.voting.voters.AbstractBoolVoter
boolVote, 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

RequestHeaderPatternVoter

public RequestHeaderPatternVoter()
Method Detail

setHeaderName

public void setHeaderName(String headerName)

getHeaderName

public String getHeaderName()

resolveRequestHeaderFromValue

protected String resolveRequestHeaderFromValue(Object value,
                                               String headerName)
Retrieve the value of the specified header from the request.



Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.