| 
JmDNS 3.4.1 | |||||||||
| 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.IPv4Address
 | 
static class | 
DNSRecord.IPv6Address
 | 
static class | 
DNSRecord.Pointer
Pointer record.  | 
static class | 
DNSRecord.Service
Service record.  | 
static class | 
DNSRecord.Text
 | 
| Field Summary | |
|---|---|
static byte[] | 
EMPTY_TXT
 | 
| Method Summary | |
|---|---|
 boolean | 
equals(Object other)
 | 
 InetAddress | 
getRecordSource()
 | 
abstract  ServiceEvent | 
getServiceEvent(JmDNSImpl dns)
Creates and return a service event for this record.  | 
 ServiceInfo | 
getServiceInfo()
Return a service information associated with that record if appropriate.  | 
abstract  ServiceInfo | 
getServiceInfo(boolean persistent)
Return a service information associated with that record if appropriate.  | 
 int | 
getTTL()
 | 
 boolean | 
isExpired(long now)
Check if the record is expired.  | 
abstract  boolean | 
isSingleValued()
Determine if a record can have multiple values in the cache.  | 
 boolean | 
isStale(long now)
Check if the record is stale, i.e.  | 
 void | 
setRecordSource(InetAddress source)
 | 
 void | 
setTTL(int ttl)
 | 
protected  void | 
toString(StringBuilder aLog)
 | 
| Methods inherited from class javax.jmdns.impl.DNSEntry | 
|---|
compareTo, getKey, getName, getQualifiedNameMap, getRecordClass, getRecordType, getSubtype, getType, hashCode, isDomainDiscoveryQuery, isReverseLookup, isSameEntry, isSameRecordClass, isSameType, isServicesDiscoveryMetaQuery, isUnique, isV4ReverseLookup, isV6ReverseLookup, sameSubtype, toByteArray, toByteArray, toString | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final byte[] EMPTY_TXT
| Method Detail | 
|---|
public boolean equals(Object other)
equals in class DNSEntrypublic boolean isExpired(long now)
DNSEntry
isExpired in class DNSEntrynow - update date
true is the record is expired, false otherwise.public boolean isStale(long now)
DNSEntry
isStale in class DNSEntrynow - update date
true is the record is stale, false otherwise.public abstract boolean isSingleValued()
false if this record can have multiple values in the cache, true otherwise.public ServiceInfo getServiceInfo()
public abstract ServiceInfo getServiceInfo(boolean persistent)
persistent - if true ServiceListener.resolveService will be called whenever new new information is received.
public abstract ServiceEvent getServiceEvent(JmDNSImpl dns)
dns - DNS serviced by this event
public void setRecordSource(InetAddress source)
public InetAddress getRecordSource()
protected void toString(StringBuilder aLog)
toString in class DNSEntrypublic void setTTL(int ttl)
public int getTTL()
  | 
Last updated 2011-08-25 12:40 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||