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 | +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

Version:
$Rev: 664295 $, $Date: 2008-06-07 09:48:16 +0200 (Sat, 07 Jun 2008) $
Author:
Apache Directory Project

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

Constructor Detail

QuestionRecord

public QuestionRecord(java.lang.String domainName,
                      RecordType recordType,
                      RecordClass recordClass)
Creates a new instance of QuestionRecord.

Parameters:
domainName -
recordType -
recordClass -
Method Detail

getDomainName

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

Returns:
The domain name.

getRecordType

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

Returns:
The RecordType.

getRecordClass

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

Returns:
The RecordClass.

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
the instance's hash code
See Also:
Object.hashCode()

toString

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


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