org.archive.wayback.authenticationcontrol
Class IPMatchesBooleanOperator
java.lang.Object
org.archive.wayback.authenticationcontrol.IPMatchesBooleanOperator
- All Implemented Interfaces:
- BooleanOperator<WaybackRequest>
public class IPMatchesBooleanOperator
- extends Object
- implements BooleanOperator<WaybackRequest>
A BooleanOperator which results in true value if a users request originated
from within a list of configured IP ranges.
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IPMatchesBooleanOperator
public IPMatchesBooleanOperator()
getAllowedRanges
public List<String> getAllowedRanges()
- Returns:
- null. this is a placeholder for Spring's getter/setter
examination
setAllowedRanges
public void setAllowedRanges(List<String> allowedRanges)
- Parameters:
allowedRanges - parses each String IPRange provided, added them to
the list of IPRanges which this operator matches
isTrue
public boolean isTrue(WaybackRequest value)
- Specified by:
isTrue in interface BooleanOperator<WaybackRequest>
Copyright © 2005-2011 Internet Archive. All Rights Reserved.