org.apache.directory.server.dns.messages
Class DnsMessageModifier

java.lang.Object
  extended by 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 +---------------------+

Version:
$Rev: 547514 $, $Date: 2007-06-15 05:50:50 +0200 (Fri, 15 Jun 2007) $
Author:
Apache Directory Project

Constructor Summary
DnsMessageModifier()
           
 
Method Summary
 DnsMessage getDnsMessage()
          Returns the DnsMessage.
 void setAcceptNonAuthenticatedData(boolean acceptNonAuthenticatedData)
           
 void setAdditionalRecords(java.util.List<ResourceRecord> additionalRecords)
           
 void setAnswerRecords(java.util.List<ResourceRecord> answerRecords)
           
 void setAuthoritativeAnswer(boolean authoritativeAnswer)
           
 void setAuthorityRecords(java.util.List<ResourceRecord> authorityRecords)
           
 void setMessageType(MessageType messageType)
           
 void setOpCode(OpCode opCode)
           
 void setQuestionRecords(java.util.List<QuestionRecord> questionRecords)
           
 void setRecursionAvailable(boolean recursionAvailable)
           
 void setRecursionDesired(boolean recursionDesired)
           
 void setReserved(boolean reserved)
           
 void setResponseCode(ResponseCode responseCode)
           
 void setTransactionId(int transactionId)
           
 void setTruncated(boolean truncated)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DnsMessageModifier

public DnsMessageModifier()
Method Detail

getDnsMessage

public DnsMessage getDnsMessage()
Returns the DnsMessage.

Returns:
The DnsMessage.

setAcceptNonAuthenticatedData

public void setAcceptNonAuthenticatedData(boolean acceptNonAuthenticatedData)
Parameters:
acceptNonAuthenticatedData - The acceptNonAuthenticatedData to set.

setAdditionalRecords

public void setAdditionalRecords(java.util.List<ResourceRecord> additionalRecords)
Parameters:
additionalRecords - The additional to set.

setAnswerRecords

public void setAnswerRecords(java.util.List<ResourceRecord> answerRecords)
Parameters:
answerRecords - The answer to set.

setAuthoritativeAnswer

public void setAuthoritativeAnswer(boolean authoritativeAnswer)
Parameters:
authoritativeAnswer - The authoritativeAnswer to set.

setAuthorityRecords

public void setAuthorityRecords(java.util.List<ResourceRecord> 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(java.util.List<QuestionRecord> 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(int transactionId)
Parameters:
transactionId - The transactionId to set.

setTruncated

public void setTruncated(boolean truncated)
Parameters:
truncated - The truncated to set.


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.