org.archive.wayback.authenticationcontrol
Class IPMatchesBooleanOperator

java.lang.Object
  extended by 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

Constructor Summary
IPMatchesBooleanOperator()
           
 
Method Summary
 List<String> getAllowedRanges()
           
 boolean isTrue(WaybackRequest value)
           
 void setAllowedRanges(List<String> allowedRanges)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IPMatchesBooleanOperator

public IPMatchesBooleanOperator()
Method Detail

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.