javax.jmdns.impl
Class DNSRecord

java.lang.Object
  extended by javax.jmdns.impl.DNSEntry
      extended by javax.jmdns.impl.DNSRecord
Direct Known Subclasses:
DNSRecord.Address, DNSRecord.HostInformation, DNSRecord.Pointer, DNSRecord.Service, DNSRecord.Text

public abstract class DNSRecord
extends DNSEntry

DNS record


Nested Class Summary
static class DNSRecord.Address
          Address record.
static class DNSRecord.HostInformation
           
static class DNSRecord.Pointer
          Pointer record.
static class DNSRecord.Service
          Service record.
static class DNSRecord.Text
           
 
Method Summary
 boolean equals(java.lang.Object other)
          True if this record is the same as some other record.
 java.net.InetAddress getRecordSource()
           
 int getTTL()
           
 boolean isExpired(long now)
          Check if the record is expired.
 void setRecordSource(java.net.InetAddress source)
           
 void setTTL(int ttl)
           
 java.lang.String toString(java.lang.String other)
           
 
Methods inherited from class javax.jmdns.impl.DNSEntry
compareTo, getKey, getName, getRecordClass, getRecordType, hashCode, isUnique, setName, toByteArray, toByteArray, toString, toString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

equals

public boolean equals(java.lang.Object other)
True if this record is the same as some other record.

Overrides:
equals in class DNSEntry

isExpired

public boolean isExpired(long now)
Check if the record is expired.

Parameters:
now - update date
Returns:
true is the record is expired, false otherwise.

setRecordSource

public void setRecordSource(java.net.InetAddress source)

getRecordSource

public java.net.InetAddress getRecordSource()

toString

public java.lang.String toString(java.lang.String other)

setTTL

public void setTTL(int ttl)

getTTL

public int getTTL()