info.magnolia.voting.voters
Class DomainNameRegexVoter

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

public class DomainNameRegexVoter
extends AbstractBoolVoter

Checks if the request has domain that matches configured regex.


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

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.