
Public Member Functions | |
| int | compareTo (DNSEntry that) |
| boolean | equals (Object obj) |
| String | getKey () |
| String | getName () |
| Map< Fields, String > | getQualifiedNameMap () |
| DNSRecordClass | getRecordClass () |
| DNSRecordType | getRecordType () |
| String | getSubtype () |
| String | getType () |
| int | hashCode () |
| boolean | isDomainDiscoveryQuery () |
| abstract boolean | isExpired (long now) |
| boolean | isReverseLookup () |
| boolean | isSameEntry (DNSEntry entry) |
| boolean | isSameRecordClass (DNSEntry entry) |
| boolean | isSameType (DNSEntry entry) |
| boolean | isServicesDiscoveryMetaQuery () |
| abstract boolean | isStale (long now) |
| boolean | isUnique () |
| boolean | isV4ReverseLookup () |
| boolean | isV6ReverseLookup () |
| boolean | sameSubtype (DNSEntry other) |
| String | toString () |
Protected Member Functions | |
| void | toByteArray (DataOutputStream dout) throws IOException |
| byte[] | toByteArray () |
| void | toString (StringBuilder aLog) |
Package Functions | |
| DNSEntry (String name, DNSRecordType type, DNSRecordClass recordClass, boolean unique) | |
Package Attributes | |
| final Map< Fields, String > | _qualifiedNameMap |
Private Attributes | |
| final DNSRecordClass | _dnsClass |
| final String | _key |
| final String | _name |
| final DNSRecordType | _recordType |
| final String | _type |
| final boolean | _unique |
DNS entry with a name, type, and class. This is the base class for questions and records.
Definition at line 22 of file DNSEntry.java.
| javax.jmdns.impl.DNSEntry.DNSEntry | ( | String | name, |
| DNSRecordType | type, | ||
| DNSRecordClass | recordClass, | ||
| boolean | unique | ||
| ) | [inline, package] |
Create an entry.
Definition at line 41 of file DNSEntry.java.
| int javax.jmdns.impl.DNSEntry.compareTo | ( | DNSEntry | that | ) | [inline] |
Does a lexicographic comparison of the byte array representation of this record and that record. This is needed for tie-break tests according to draft-cheshire-dnsext-multicastdns-04.txt chapter 9.2.
| that |
Definition at line 251 of file DNSEntry.java.
| boolean javax.jmdns.impl.DNSEntry.equals | ( | Object | obj | ) | [inline] |
Reimplemented in javax.jmdns.impl.DNSRecord.
Definition at line 61 of file DNSEntry.java.
| String javax.jmdns.impl.DNSEntry.getKey | ( | ) | [inline] |
Returns the key for this entry. The key is the lower case name.
Definition at line 121 of file DNSEntry.java.
| String javax.jmdns.impl.DNSEntry.getName | ( | ) | [inline] |
Returns the name of this entry
Definition at line 105 of file DNSEntry.java.
| Map<Fields, String> javax.jmdns.impl.DNSEntry.getQualifiedNameMap | ( | ) | [inline] |
Definition at line 146 of file DNSEntry.java.
| DNSRecordClass javax.jmdns.impl.DNSEntry.getRecordClass | ( | ) | [inline] |
Definition at line 135 of file DNSEntry.java.
| DNSRecordType javax.jmdns.impl.DNSEntry.getRecordType | ( | ) | [inline] |
Definition at line 128 of file DNSEntry.java.
| String javax.jmdns.impl.DNSEntry.getSubtype | ( | ) | [inline] |
Returns the subtype of this entry
Definition at line 95 of file DNSEntry.java.
| String javax.jmdns.impl.DNSEntry.getType | ( | ) | [inline] |
Definition at line 112 of file DNSEntry.java.
| int javax.jmdns.impl.DNSEntry.hashCode | ( | ) | [inline] |
Overriden, to return a value which is consistent with the value returned by equals(Object).
Definition at line 268 of file DNSEntry.java.
| boolean javax.jmdns.impl.DNSEntry.isDomainDiscoveryQuery | ( | ) | [inline] |
Definition at line 154 of file DNSEntry.java.
| abstract boolean javax.jmdns.impl.DNSEntry.isExpired | ( | long | now | ) | [pure virtual] |
Check if the record is expired.
| now | update date |
true is the record is expired, false otherwise. Implemented in javax.jmdns.impl.DNSQuestion, and javax.jmdns.impl.DNSRecord.
| boolean javax.jmdns.impl.DNSEntry.isReverseLookup | ( | ) | [inline] |
Definition at line 168 of file DNSEntry.java.
| boolean javax.jmdns.impl.DNSEntry.isSameEntry | ( | DNSEntry | entry | ) | [inline] |
Check if two entries have exactly the same name, type, and class.
| entry |
true if the two entries have are for the same record, false otherwise Reimplemented in javax.jmdns.impl.DNSRecord.Pointer.
Definition at line 76 of file DNSEntry.java.
| boolean javax.jmdns.impl.DNSEntry.isSameRecordClass | ( | DNSEntry | entry | ) | [inline] |
Check that 2 entries are of the same class.
| entry |
true is the two class are the same, false otherwise. Definition at line 204 of file DNSEntry.java.
| boolean javax.jmdns.impl.DNSEntry.isSameType | ( | DNSEntry | entry | ) | [inline] |
Check that 2 entries are of the same type.
| entry |
true is the two type are the same, false otherwise. Reimplemented in javax.jmdns.impl.DNSQuestion.AllRecords.
Definition at line 214 of file DNSEntry.java.
| boolean javax.jmdns.impl.DNSEntry.isServicesDiscoveryMetaQuery | ( | ) | [inline] |
Definition at line 150 of file DNSEntry.java.
| abstract boolean javax.jmdns.impl.DNSEntry.isStale | ( | long | now | ) | [pure virtual] |
Check if the record is stale, i.e. it has outlived more than half of its TTL.
| now | update date |
true is the record is stale, false otherwise. Implemented in javax.jmdns.impl.DNSQuestion, and javax.jmdns.impl.DNSRecord.
| boolean javax.jmdns.impl.DNSEntry.isUnique | ( | ) | [inline] |
Definition at line 142 of file DNSEntry.java.
| boolean javax.jmdns.impl.DNSEntry.isV4ReverseLookup | ( | ) | [inline] |
Definition at line 172 of file DNSEntry.java.
| boolean javax.jmdns.impl.DNSEntry.isV6ReverseLookup | ( | ) | [inline] |
Definition at line 176 of file DNSEntry.java.
| boolean javax.jmdns.impl.DNSEntry.sameSubtype | ( | DNSEntry | other | ) | [inline] |
Check if two entries have the same subtype.
| other |
true if the two entries have are for the same subtype, false otherwise Definition at line 86 of file DNSEntry.java.
| void javax.jmdns.impl.DNSEntry.toByteArray | ( | DataOutputStream | dout | ) | throws IOException [inline, protected] |
| dout |
| IOException |
Reimplemented in javax.jmdns.impl.DNSRecord.Service, and javax.jmdns.impl.DNSRecord.Address.
Definition at line 222 of file DNSEntry.java.
| byte [] javax.jmdns.impl.DNSEntry.toByteArray | ( | ) | [inline, protected] |
Creates a byte array representation of this record. This is needed for tie-break tests according to draft-cheshire-dnsext-multicastdns-04.txt chapter 9.2.
Definition at line 233 of file DNSEntry.java.
| String javax.jmdns.impl.DNSEntry.toString | ( | ) | [inline] |
Definition at line 277 of file DNSEntry.java.
| void javax.jmdns.impl.DNSEntry.toString | ( | StringBuilder | aLog | ) | [inline, protected] |
| aLog |
Reimplemented in javax.jmdns.impl.DNSRecord, javax.jmdns.impl.DNSRecord.HostInformation, javax.jmdns.impl.DNSRecord.Service, javax.jmdns.impl.DNSRecord.Text, javax.jmdns.impl.DNSRecord.Pointer, javax.jmdns.impl.DNSRecord.Address, and javax.jmdns.impl.DNSQuestion.
Definition at line 292 of file DNSEntry.java.
final DNSRecordClass javax.jmdns.impl.DNSEntry._dnsClass [private] |
Definition at line 32 of file DNSEntry.java.
final String javax.jmdns.impl.DNSEntry._key [private] |
Definition at line 24 of file DNSEntry.java.
final String javax.jmdns.impl.DNSEntry._name [private] |
Definition at line 26 of file DNSEntry.java.
final Map<Fields, String> javax.jmdns.impl.DNSEntry._qualifiedNameMap [package] |
Definition at line 36 of file DNSEntry.java.
final DNSRecordType javax.jmdns.impl.DNSEntry._recordType [private] |
Definition at line 30 of file DNSEntry.java.
final String javax.jmdns.impl.DNSEntry._type [private] |
Definition at line 28 of file DNSEntry.java.
final boolean javax.jmdns.impl.DNSEntry._unique [private] |
Definition at line 34 of file DNSEntry.java.