com.lavantech.net.dns
Class QuestionRecord

java.lang.Object
  extended bycom.lavantech.net.dns.QuestionRecord

public class QuestionRecord
extends java.lang.Object

Question Record represents the query that resulted in a response from a DNS server


Constructor Summary
QuestionRecord(java.lang.String qName, int qType, int qClass)
          Constructor for the question record.
 
Method Summary
 int getQuestionClass()
          Returns the question class type
 java.lang.String getQuestionName()
          Returns the question string
 int getQuestionType()
          Returns the question record type
 java.lang.String toString()
          Returns a String representation of the record.
 
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 qName,
                      int qType,
                      int qClass)
Constructor for the question record.

Parameters:
qName - Query (hostname/domain/ipaddress)
qType - Query Record type
qClass - Query Class (QCLASS_IN for Internet class)
Method Detail

getQuestionName

public java.lang.String getQuestionName()
Returns the question string


getQuestionType

public int getQuestionType()
Returns the question record type


getQuestionClass

public int getQuestionClass()
Returns the question class type


toString

public java.lang.String toString()
Returns a String representation of the record.