org.apache.directory.server.dns.messages
Class DnsMessageModifier
java.lang.Object
org.apache.directory.server.dns.messages.DnsMessageModifier
public class DnsMessageModifier
- extends java.lang.Object
All communications inside of the domain protocol are carried in a single
format called a message. The top level format of message is divided
into 5 sections (some of which are empty in certain cases) shown below:
+---------------------+
| Header |
+---------------------+
| Question | the question for the name server
+---------------------+
| Answer | ResourceRecords answering the question
+---------------------+
| Authority | ResourceRecords pointing toward an authority
+---------------------+
| Additional | ResourceRecords holding additional information
+---------------------+
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DnsMessageModifier
public DnsMessageModifier()
getDnsMessage
public DnsMessage getDnsMessage()
setAcceptNonAuthenticatedData
public void setAcceptNonAuthenticatedData(boolean acceptNonAuthenticatedData)
- Parameters:
acceptNonAuthenticatedData
- The acceptNonAuthenticatedData to set.
setAdditionalRecords
public void setAdditionalRecords(ResourceRecords additionalRecords)
- Parameters:
additionalRecords
- The additional to set.
setAnswerRecords
public void setAnswerRecords(ResourceRecords answerRecords)
- Parameters:
answerRecords
- The answer to set.
setAuthoritativeAnswer
public void setAuthoritativeAnswer(boolean authoritativeAnswer)
- Parameters:
authoritativeAnswer
- The authoritativeAnswer to set.
setAuthorityRecords
public void setAuthorityRecords(ResourceRecords authorityRecords)
- Parameters:
authorityRecords
- The authority to set.
setMessageType
public void setMessageType(MessageType messageType)
- Parameters:
messageType
- The messageType to set.
setOpCode
public void setOpCode(OpCode opCode)
- Parameters:
opCode
- The opCode to set.
setQuestionRecords
public void setQuestionRecords(QuestionRecords questionRecords)
- Parameters:
questionRecords
- The question to set.
setRecursionAvailable
public void setRecursionAvailable(boolean recursionAvailable)
- Parameters:
recursionAvailable
- The recursionAvailable to set.
setRecursionDesired
public void setRecursionDesired(boolean recursionDesired)
- Parameters:
recursionDesired
- The recursionDesired to set.
setReserved
public void setReserved(boolean reserved)
- Parameters:
reserved
- The reserved to set.
setResponseCode
public void setResponseCode(ResponseCode responseCode)
- Parameters:
responseCode
- The responseCode to set.
setTransactionId
public void setTransactionId(short transactionId)
- Parameters:
transactionId
- The transactionId to set.
setTruncated
public void setTruncated(boolean truncated)
- Parameters:
truncated
- The truncated to set.
Copyright © 2003-2010 Apache Software Foundation. All Rights Reserved.