public class DnsMessage
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
acceptNonAuthenticatedData |
private java.util.List<ResourceRecord> |
additionalRecords |
private java.util.List<ResourceRecord> |
answerRecords |
private boolean |
authoritativeAnswer |
private java.util.List<ResourceRecord> |
authorityRecords |
private MessageType |
messageType |
private OpCode |
opCode |
private java.util.List<QuestionRecord> |
questionRecords |
private boolean |
recursionAvailable |
private boolean |
recursionDesired |
private boolean |
reserved |
private ResponseCode |
responseCode |
private int |
transactionId
The header section is always present.
|
private boolean |
truncated |
| Constructor and Description |
|---|
DnsMessage(int transactionId,
MessageType messageType,
OpCode opCode,
boolean authoritativeAnswer,
boolean truncated,
boolean recursionDesired,
boolean recursionAvailable,
boolean reserved,
boolean acceptNonAuthenticatedData,
ResponseCode responseCode,
java.util.List<QuestionRecord> question,
java.util.List<ResourceRecord> answer,
java.util.List<ResourceRecord> authority,
java.util.List<ResourceRecord> additional)
Creates a new instance of DnsMessage.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
java.util.List<ResourceRecord> |
getAdditionalRecords() |
java.util.List<ResourceRecord> |
getAnswerRecords() |
java.util.List<ResourceRecord> |
getAuthorityRecords() |
MessageType |
getMessageType() |
OpCode |
getOpCode() |
java.util.List<QuestionRecord> |
getQuestionRecords() |
ResponseCode |
getResponseCode() |
int |
getTransactionId() |
int |
hashCode() |
boolean |
isAcceptNonAuthenticatedData() |
boolean |
isAuthoritativeAnswer() |
boolean |
isRecursionAvailable() |
boolean |
isRecursionDesired() |
boolean |
isReserved() |
boolean |
isTruncated() |
java.lang.String |
toString() |
private int transactionId
private MessageType messageType
private OpCode opCode
private boolean authoritativeAnswer
private boolean truncated
private boolean recursionDesired
private boolean recursionAvailable
private boolean reserved
private boolean acceptNonAuthenticatedData
private ResponseCode responseCode
private java.util.List<QuestionRecord> questionRecords
private java.util.List<ResourceRecord> answerRecords
private java.util.List<ResourceRecord> authorityRecords
private java.util.List<ResourceRecord> additionalRecords
public DnsMessage(int transactionId,
MessageType messageType,
OpCode opCode,
boolean authoritativeAnswer,
boolean truncated,
boolean recursionDesired,
boolean recursionAvailable,
boolean reserved,
boolean acceptNonAuthenticatedData,
ResponseCode responseCode,
java.util.List<QuestionRecord> question,
java.util.List<ResourceRecord> answer,
java.util.List<ResourceRecord> authority,
java.util.List<ResourceRecord> additional)
transactionId - messageType - opCode - authoritativeAnswer - truncated - recursionDesired - recursionAvailable - reserved - acceptNonAuthenticatedData - responseCode - question - answer - authority - additional - public boolean isAcceptNonAuthenticatedData()
public java.util.List<ResourceRecord> getAdditionalRecords()
public java.util.List<ResourceRecord> getAnswerRecords()
public boolean isAuthoritativeAnswer()
public java.util.List<ResourceRecord> getAuthorityRecords()
public MessageType getMessageType()
public OpCode getOpCode()
public java.util.List<QuestionRecord> getQuestionRecords()
public boolean isRecursionAvailable()
public boolean isRecursionDesired()
public boolean isReserved()
public ResponseCode getResponseCode()
public int getTransactionId()
public boolean isTruncated()
public boolean equals(java.lang.Object object)
equals in class java.lang.ObjectObject.equals(Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()