org.neverfear.whois
Class WhoisResponse

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

public class WhoisResponse
extends java.lang.Object

Represents the response from a whois server.

Author:
doug@neverfear.org

Field Summary
private  java.lang.String query
           
private  java.lang.String reply
           
 
Constructor Summary
WhoisResponse(java.lang.String name, java.lang.String data)
          Construct a response for the name.
 
Method Summary
 java.lang.String getData()
          Get the response contents.
 java.lang.String getName()
          Get the domain name queried.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reply

private java.lang.String reply

query

private java.lang.String query
Constructor Detail

WhoisResponse

public WhoisResponse(java.lang.String name,
                     java.lang.String data)
Construct a response for the name.

Parameters:
name - The domain name.
data - The response contents.
Method Detail

getData

public java.lang.String getData()
Get the response contents.

Returns:
response contents.

getName

public java.lang.String getName()
Get the domain name queried.

Returns:
A domain name.