Class DNSEntry

java.lang.Object
org.deltava.util.dns.DNSEntry
All Implemented Interfaces:
Serializable, RemoteAddressBean, Cacheable
Direct Known Subclasses:
DNSTimeoutEntry

class DNSEntry extends Object implements RemoteAddressBean, Cacheable
A bean to store a cached reverse DNS entry.
Since:
12.4
Version:
12.4
Author:
Luke
  • Constructor Details

    • DNSEntry

      DNSEntry(String addr, String hostName)
      Creates the bean.
      Parameters:
      addr - the IP address
      hostName - the host name
  • Method Details

    • getRemoteAddr

      public String getRemoteAddr()
      Description copied from interface: RemoteAddressBean
      Returns the remote IP address.
      Specified by:
      getRemoteAddr in interface RemoteAddressBean
      Returns:
      an IPv4 or IPv6 address
    • getRemoteHost

      public String getRemoteHost()
      Description copied from interface: RemoteAddressBean
      Returns the remote host name.
      Specified by:
      getRemoteHost in interface RemoteAddressBean
      Returns:
      the host name, or address if unresolved
    • cacheKey

      public Object cacheKey()
      Description copied from interface: Cacheable
      Returns the cache key for this object. Caches call this method when adding the object.
      Specified by:
      cacheKey in interface Cacheable
      Returns:
      the cache key for the object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object