|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.jmdns.impl.DNSEntry
javax.jmdns.impl.DNSRecord
public abstract class DNSRecord
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 |
|---|
public boolean equals(java.lang.Object other)
equals in class DNSEntrypublic boolean isExpired(long now)
now - update date
true is the record is expired, false otherwise.public void setRecordSource(java.net.InetAddress source)
public java.net.InetAddress getRecordSource()
public java.lang.String toString(java.lang.String other)
public void setTTL(int ttl)
public int getTTL()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||