org.apache.sling.discovery.impl.topology.connector.wl
Class SubnetWhitelistEntry

java.lang.Object
  extended by org.apache.sling.discovery.impl.topology.connector.wl.SubnetWhitelistEntry
All Implemented Interfaces:
WhitelistEntry

public class SubnetWhitelistEntry
extends Object
implements WhitelistEntry

Implementation of a WhitelistEntry which accepts cidr and ip mask notations.


Constructor Summary
SubnetWhitelistEntry(String cidrNotation)
           
SubnetWhitelistEntry(String ip, String subnetMask)
           
 
Method Summary
 boolean accepts(javax.servlet.ServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubnetWhitelistEntry

public SubnetWhitelistEntry(String cidrNotation)

SubnetWhitelistEntry

public SubnetWhitelistEntry(String ip,
                            String subnetMask)
Method Detail

accepts

public boolean accepts(javax.servlet.ServletRequest request)
Specified by:
accepts in interface WhitelistEntry
Parameters:
request - the incoming request which should be accepted or rejected
Returns:
true if the request is accepted by this WhitelistEntry


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.