|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSEntry
net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSRecord
public abstract class DNSRecord
DNS record
| Nested Class Summary | |
|---|---|
(package private) static class |
DNSRecord.Address
Address record. |
(package private) static class |
DNSRecord.Pointer
Pointer record. |
(package private) static class |
DNSRecord.Service
Service record. |
(package private) static class |
DNSRecord.Text
|
| Field Summary | |
|---|---|
(package private) int |
ttl
|
| Fields inherited from class net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSEntry |
|---|
clazz, key, name, type, unique |
| Constructor Summary | |
|---|---|
DNSRecord(String name,
int type,
int clazz,
int ttl)
Create a DNSRecord with a name, type, clazz, and ttl. |
|
| Method Summary | |
|---|---|
(package private) abstract DNSOutgoing |
addAnswer(JmDNS dns,
DNSIncoming in,
InetAddress addr,
int port,
DNSOutgoing out)
Adds this as an answer to the provided outgoing datagram. |
boolean |
equals(Object other)
True if this record is the same as some other record. |
(package private) long |
getExpirationTime(int percent)
Get the expiration time of this record. |
(package private) int |
getRemainingTTL(long now)
Get the remaining TTL for this record. |
(package private) abstract boolean |
handleQuery(JmDNS dns,
long expirationTime)
Handles a query represented by this record. |
(package private) abstract boolean |
handleResponse(JmDNS dns)
Handles a responserepresented by this record. |
(package private) boolean |
isExpired(long now)
Check if the record is expired. |
(package private) boolean |
isStale(long now)
Check if the record is stale, ie it has outlived more than half of its TTL. |
(package private) void |
resetTTL(DNSRecord other)
Reset the TTL of a record. |
(package private) boolean |
sameAs(DNSRecord other)
True if this record is the same as some other record. |
(package private) boolean |
sameType(DNSRecord other)
True if this record has the same type as some other record. |
(package private) abstract boolean |
sameValue(DNSRecord other)
True if this record has the same value as some other record. |
(package private) boolean |
suppressedBy(DNSIncoming msg)
True if this record is suppressed by the answers in a message. |
(package private) boolean |
suppressedBy(DNSRecord other)
True if this record would be supressed by an answer. |
String |
toString(String other)
|
(package private) abstract void |
write(DNSOutgoing out)
Write this record into an outgoing message. |
| Methods inherited from class net.java.sip.communicator.impl.protocol.zeroconf.jmdns.DNSEntry |
|---|
getClazz, getClazz, getName, getType, getType, hashCode, isUnique, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
int ttl
| Constructor Detail |
|---|
DNSRecord(String name,
int type,
int clazz,
int ttl)
| Method Detail |
|---|
public boolean equals(Object other)
equals in class DNSEntryother - obj to be compared to.boolean sameAs(DNSRecord other)
abstract boolean sameValue(DNSRecord other)
boolean sameType(DNSRecord other)
abstract boolean handleQuery(JmDNS dns,
long expirationTime)
abstract boolean handleResponse(JmDNS dns)
abstract DNSOutgoing addAnswer(JmDNS dns,
DNSIncoming in,
InetAddress addr,
int port,
DNSOutgoing out)
throws IOException
IOExceptionboolean suppressedBy(DNSIncoming msg)
boolean suppressedBy(DNSRecord other)
long getExpirationTime(int percent)
int getRemainingTTL(long now)
boolean isExpired(long now)
boolean isStale(long now)
void resetTTL(DNSRecord other)
abstract void write(DNSOutgoing out)
throws IOException
IOExceptionpublic String toString(String other)
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||