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

List of all members.

Public Member Functions

Collection<?extends DNSRecordgetAdditionals ()
Collection<?extends DNSRecordgetAllAnswers ()
Collection<?extends DNSRecordgetAnswers ()
Collection<?extends DNSRecordgetAuthorities ()
int getFlags ()
int getId ()
int getNumberOfAdditionals ()
int getNumberOfAnswers ()
int getNumberOfAuthorities ()
int getNumberOfQuestions ()
Collection<?extends DNSQuestiongetQuestions ()
boolean isEmpty ()
boolean isMulticast ()
boolean isQuery ()
boolean isResponse ()
boolean isTruncated ()
void setFlags (int flags)
void setId (int id)

Static Public Attributes

static final boolean MULTICAST = true
static final boolean UNICAST = false

Protected Member Functions

 DNSMessage (int flags, int id, boolean multicast)
String print (byte[] data)

Protected Attributes

final List< DNSRecord_additionals
final List< DNSRecord_answers
final List< DNSRecord_authoritativeAnswers
final List< DNSQuestion_questions

Package Functions

String print ()

Package Attributes

boolean _multicast

Private Attributes

int _flags
int _id

Detailed Description

DNSMessage define a DNS message either incoming or outgoing.

Author:
Werner Randelshofer, Rick Blair, Pierre Frisch

Definition at line 19 of file DNSMessage.java.


Constructor & Destructor Documentation

javax.jmdns.impl.DNSMessage.DNSMessage ( int  flags,
int  id,
boolean  multicast 
) [inline, protected]
Parameters:
flags
id
multicast

Definition at line 55 of file DNSMessage.java.


Member Function Documentation

Collection<? extends DNSRecord> javax.jmdns.impl.DNSMessage.getAdditionals ( ) [inline]
Returns:
list of additional answers

Definition at line 173 of file DNSMessage.java.

Collection<? extends DNSRecord> javax.jmdns.impl.DNSMessage.getAllAnswers ( ) [inline]

Definition at line 134 of file DNSMessage.java.

Collection<? extends DNSRecord> javax.jmdns.impl.DNSMessage.getAnswers ( ) [inline]
Returns:
list of answers

Definition at line 145 of file DNSMessage.java.

Collection<? extends DNSRecord> javax.jmdns.impl.DNSMessage.getAuthorities ( ) [inline]
Returns:
list of authorities

Definition at line 159 of file DNSMessage.java.

Returns:
message flags

Definition at line 101 of file DNSMessage.java.

Returns:
message id

Definition at line 86 of file DNSMessage.java.

Returns:
number of additional in the message

Definition at line 180 of file DNSMessage.java.

Returns:
number of answers in the message

Definition at line 152 of file DNSMessage.java.

Returns:
number of authorities in the message

Definition at line 166 of file DNSMessage.java.

Returns:
number of questions in the message

Definition at line 130 of file DNSMessage.java.

Collection<? extends DNSQuestion> javax.jmdns.impl.DNSMessage.getQuestions ( ) [inline]
Returns:
list of questions

Definition at line 123 of file DNSMessage.java.

Check if the message is empty

Returns:
true is the message is empty

Definition at line 216 of file DNSMessage.java.

Returns:
true if multicast

Definition at line 116 of file DNSMessage.java.

Check if the message is a query.

Returns:
true is the message is a query

Reimplemented in javax.jmdns.impl.DNSOutgoing.

Definition at line 198 of file DNSMessage.java.

Check if the message is a response.

Returns:
true is the message is a response

Definition at line 207 of file DNSMessage.java.

Check if the message is truncated.

Returns:
true if the message was truncated

Definition at line 189 of file DNSMessage.java.

String javax.jmdns.impl.DNSMessage.print ( ) [inline, package]

Debugging.

Definition at line 223 of file DNSMessage.java.

String javax.jmdns.impl.DNSMessage.print ( byte[]  data) [inline, protected]

Debugging.

Parameters:
data
Returns:
data dump

Definition at line 256 of file DNSMessage.java.

void javax.jmdns.impl.DNSMessage.setFlags ( int  flags) [inline]
Parameters:
flagsthe flags to set

Definition at line 109 of file DNSMessage.java.

void javax.jmdns.impl.DNSMessage.setId ( int  id) [inline]
Parameters:
idthe id to set

Definition at line 94 of file DNSMessage.java.


Member Data Documentation

Definition at line 48 of file DNSMessage.java.

Definition at line 44 of file DNSMessage.java.

Definition at line 46 of file DNSMessage.java.

Definition at line 40 of file DNSMessage.java.

Definition at line 36 of file DNSMessage.java.

Definition at line 38 of file DNSMessage.java.

Definition at line 42 of file DNSMessage.java.

final boolean javax.jmdns.impl.DNSMessage.MULTICAST = true [static]

Definition at line 24 of file DNSMessage.java.

final boolean javax.jmdns.impl.DNSMessage.UNICAST = false [static]

Definition at line 29 of file DNSMessage.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