Public Member Functions | Protected Member Functions | Package Functions | Package Attributes | Private Attributes
javax.jmdns.impl.DNSEntry Class Reference
Inheritance diagram for javax.jmdns.impl.DNSEntry:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

DNS entry with a name, type, and class. This is the base class for questions and records.

Author:
Arthur van Hoff, Pierre Frisch, Rick Blair

Definition at line 22 of file DNSEntry.java.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

Parameters:
that
Returns:
a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

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.

Returns:
key for this entry

Definition at line 121 of file DNSEntry.java.

String javax.jmdns.impl.DNSEntry.getName ( ) [inline]

Returns the name of this entry

Returns:
name of this entry

Definition at line 105 of file DNSEntry.java.

Definition at line 146 of file DNSEntry.java.

Returns:
record class

Definition at line 135 of file DNSEntry.java.

Returns:
record type

Definition at line 128 of file DNSEntry.java.

Returns the subtype of this entry

Returns:
subtype of this entry

Definition at line 95 of file DNSEntry.java.

String javax.jmdns.impl.DNSEntry.getType ( ) [inline]
Returns:
the type

Definition at line 112 of file DNSEntry.java.

Overriden, to return a value which is consistent with the value returned by equals(Object).

Definition at line 268 of file DNSEntry.java.

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.

Parameters:
nowupdate date
Returns:
true is the record is expired, false otherwise.

Implemented in javax.jmdns.impl.DNSQuestion, and javax.jmdns.impl.DNSRecord.

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.

Parameters:
entry
Returns:
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.

Check that 2 entries are of the same class.

Parameters:
entry
Returns:
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.

Parameters:
entry
Returns:
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.

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.

Parameters:
nowupdate date
Returns:
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]
Returns:
true if unique

Definition at line 142 of file DNSEntry.java.

Definition at line 172 of file DNSEntry.java.

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.

Parameters:
other
Returns:
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]
Parameters:
dout
Exceptions:
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.

Returns:
byte array representation

Definition at line 233 of file DNSEntry.java.

Definition at line 277 of file DNSEntry.java.

void javax.jmdns.impl.DNSEntry.toString ( StringBuilder  aLog) [inline, protected]

Member Data Documentation

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.

Definition at line 36 of file DNSEntry.java.

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.


The documentation for this class was generated from the following file:


zeroconf_jmdns_suite
Author(s): Daniel Stonier
autogenerated on Thu Aug 27 2015 15:50:27