org.neverfear.whois
Class WhoisQuery

java.lang.Object
  extended by org.neverfear.whois.WhoisQuery

public class WhoisQuery
extends java.lang.Object

Represents a whois query.

Author:
doug@neverfear.org

Field Summary
private  java.lang.String query
           
private  WhoisResponse response
           
 
Constructor Summary
WhoisQuery(java.lang.String name)
          Construct a query for the given name.
 
Method Summary
 WhoisResponse getResponse()
          Get the response for this query.
 void reset()
          Destroy the existing response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

query

private java.lang.String query

response

private WhoisResponse response
Constructor Detail

WhoisQuery

public WhoisQuery(java.lang.String name)
Construct a query for the given name.

Parameters:
name - A domain name.
Method Detail

reset

public void reset()
Destroy the existing response.


getResponse

public WhoisResponse getResponse()
                          throws java.net.UnknownHostException,
                                 java.io.IOException
Get the response for this query.

Returns:
A WhoisResponse object
Throws:
java.net.UnknownHostException
java.io.IOException