de.malowa.greylister.dnswl
Class DNSWhitelist

java.lang.Object
  extended by de.malowa.greylister.dnswl.ExternalWhitelist
      extended by de.malowa.greylister.dnswl.DNSWhitelist

public class DNSWhitelist
extends ExternalWhitelist

The concrete implementation of the ExternalWhitlist uses the DNS based whitelist from DNSWL.ORG. An IP listed in any category at dnswl.org will be automatically whitelisted.

Author:
Marcel Lohmann

Constructor Summary
DNSWhitelist()
           
 
Method Summary
 boolean isWhitelisted(java.lang.String ip)
          Must be implemented to determine the external whitelisting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DNSWhitelist

public DNSWhitelist()
Method Detail

isWhitelisted

public boolean isWhitelisted(java.lang.String ip)
Description copied from class: ExternalWhitelist
Must be implemented to determine the external whitelisting.

Specified by:
isWhitelisted in class ExternalWhitelist
Parameters:
ip - IPv4 address
Returns:
true, if the given IPv4 address is listed on DNSWL.org.