Class DnsblResult


  • public class DnsblResult
    extends Object
    Represents the result of checking one or more DNSBL. If the identity is checked on more then one DNSBL then this object describes the first positive result, or the overall negative result.
    • Constructor Summary

      Constructors 
      Constructor Description
      DnsblResult​(Dnsbl dnsbl, java.net.InetAddress replyAddress, String reason)
      create a positive result
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getMessage()  
      String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • NOT_LISTED

        public static final DnsblResult NOT_LISTED
      • isListed

        public final boolean isListed
      • dnsbl

        public final Dnsbl dnsbl
      • replyAddress

        public final java.net.InetAddress replyAddress
        Reason code returned by the DNSBL in the form of an IP address, usually in the 127.0.0.x range.
    • Constructor Detail

      • DnsblResult

        public DnsblResult​(Dnsbl dnsbl,
                           java.net.InetAddress replyAddress,
                           String reason)
        create a positive result
    • Method Detail

      • getMessage

        public String getMessage()
      • toString

        public String toString()
        Overrides:
        toString in class Object