|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.utils.dns.Message
This class represents a DNS message.
Field Summary | |
static int |
E_FORMAT_ERROR
Format error. |
static int |
E_NAME_ERROR
Name error. |
static int |
E_NO_ERROR
No error condition. |
static int |
E_NOT_IMPLEMENTED
Not implemented. |
static int |
E_NOTAUTH
A server status request. |
static int |
E_NOTZONE
A server status request. |
static int |
E_NXRRSET
A server status request. |
static int |
E_REFUSED
Refused. |
static int |
E_SERVER_FAILURE
Server failure. |
static int |
E_YXDOMAIN
A server status request. |
static int |
E_YXRRSET
A server status request. |
static int |
Q_IQUERY
An inverse query. |
static int |
Q_QUERY
A standard query. |
static int |
Q_STATUS
A server status request. |
Constructor Summary | |
Message(Question question,
boolean recursion)
Creates a new Message. |
Method Summary | |
boolean |
getAA()
Whether not this is a response from an authoritative server. |
java.util.List |
getAdditional()
Returns a list of the resource records in the additional records section. |
java.util.List |
getAnswers()
Returns a list of the resource records in the answer section. |
java.util.List |
getAuthoritative()
Returns a list of the server resource records in the authority records section. |
int |
getId()
Returns the message identifier. |
java.util.List |
getQuestions()
Returns a list of the resource records in the question section. |
boolean |
getRA()
Whether the recursive query support is available. |
int |
getRC()
The response code. |
boolean |
getTC()
Whether this message was truncated. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int Q_QUERY
public static final int Q_IQUERY
public static final int Q_STATUS
public static final int E_NO_ERROR
public static final int E_FORMAT_ERROR
The name server was unable to interpret the query.
public static final int E_SERVER_FAILURE
The name server was unable to process this query due to a problem with the name server.
public static final int E_NAME_ERROR
Meaningful only for responses from an authoritative name server, this code signifies that the domain name referenced in the query does not exist.
public static final int E_NOT_IMPLEMENTED
The name server does not support the requested kind of query.
public static final int E_REFUSED
The name server refuses to perform the specified operation for policy reasons. For example, a name server may not wish to provide the information to the particular requester, or a name server may not wish to perform a particular operation (e.g., zone transfer) for particular data.
public static final int E_YXDOMAIN
public static final int E_YXRRSET
public static final int E_NXRRSET
public static final int E_NOTAUTH
public static final int E_NOTZONE
Constructor Detail |
public Message(Question question, boolean recursion)
question
- the query resource recordrecursion
- whether the recursion is permittedMethod Detail |
public int getId()
public boolean getAA()
public boolean getTC()
public boolean getRA()
public int getRC()
public java.util.List getQuestions()
The returned list elements are instances of the Resource class.
public java.util.List getAnswers()
The returned list elements are instances of the Resource class.
public java.util.List getAuthoritative()
The returned list elements are instances of the Resource class.
public java.util.List getAdditional()
The returned list elements are instances of the Resource class.
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |