javax.jmdns.impl

Class DNSRecord

Known Direct Subclasses:
DNSRecord.Pointer, DNSRecord.Service, DNSRecord.Text

public abstract class DNSRecord
extends DNSEntry

DNS record

Nested Class Summary

static class
DNSRecord.Pointer
Pointer record.
static class
DNSRecord.Service
Service record.
static class
DNSRecord.Text

Method Summary

boolean
equals(Object other)
True if this record is the same as some other record.
InetAddress
getRecordSource()
int
getTtl()
boolean
isExpired(long now)
Check if the record is expired.
void
setRecordSource(InetAddress source)
void
setTtl(int ttl)
String
toString(String other)

Methods inherited from class javax.jmdns.impl.DNSEntry

equals, getName, getType, hashCode, toString

Method Details

equals

public boolean equals(Object other)
True if this record is the same as some other record.
Overrides:
equals in interface DNSEntry

getRecordSource

public InetAddress getRecordSource()

getTtl

public int getTtl()

isExpired

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

setRecordSource

public void setRecordSource(InetAddress source)

setTtl

public void setTtl(int ttl)

toString

public String toString(String other)