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

java.lang.Object
  extended by org.apache.directory.server.dns.messages.QuestionRecord

public class QuestionRecord
extends java.lang.Object

The question section is used to carry the "question" in most queries, i.e., the parameters that define what is being asked. The section contains QDCOUNT (usually 1) entries, each of the following format: 1 1 1 1 1 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | | / QNAME / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | QTYPE | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ | QCLASS | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+


Constructor Summary
QuestionRecord(java.lang.String domainName, RecordType recordType, RecordClass recordClass)
           
 
Method Summary
 java.lang.String getDomainName()
          The domain name of this query.
 RecordClass getRecordClass()
          The class for this query.
 RecordType getRecordType()
          The type of the query.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuestionRecord

public QuestionRecord(java.lang.String domainName,
                      RecordType recordType,
                      RecordClass recordClass)
Method Detail

getDomainName

public java.lang.String getDomainName()
The domain name of this query. For example, www.example.com.


getRecordType

public RecordType getRecordType()
The type of the query. For example, the type is A for address records.


getRecordClass

public RecordClass getRecordClass()
The class for this query. For example, the class is IN for the Internet.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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