info.magnolia.voting.voters
Class DomainNameRegexVoter

java.lang.Object
  extended by info.magnolia.voting.voters.BaseVoterImpl<T>
      extended by info.magnolia.voting.voters.AbstractBoolVoter<Object>
          extended by info.magnolia.voting.voters.DomainNameRegexVoter
All Implemented Interfaces:
Voter<Object>

public class DomainNameRegexVoter
extends AbstractBoolVoter<Object>

Checks if the request has domain that matches configured regex. Typed to Object, as it can vote on both a passed HttpServletRequest, or the current MgnlContext.webContext if any.


Constructor Summary
DomainNameRegexVoter()
           
 
Method Summary
protected  boolean boolVote(Object value)
           
 String getDomain()
           
protected  String resolveDomain(javax.servlet.http.HttpServletRequest request)
           
 void setDomain(String domain)
           
 
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

DomainNameRegexVoter

public DomainNameRegexVoter()
Method Detail

boolVote

protected boolean boolVote(Object value)
Specified by:
boolVote in class AbstractBoolVoter<Object>

getDomain

public String getDomain()

setDomain

public void setDomain(String domain)

resolveDomain

protected String resolveDomain(javax.servlet.http.HttpServletRequest request)


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