br.nic.isavail
Class AvailClient
java.lang.Object
br.nic.isavail.AvailClient
- public class AvailClient
- extends Object
Class responsible for sending a query thru the network
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AvailClient
public AvailClient(int lang,
String ip,
String cookie_file,
int version,
String server,
int port)
throws SocketException,
UnknownHostException,
IOException
- Constructor
- Parameters:
lang
- desired output language (0 for EN, 1 for PT)ip
- proxy IP address (empty for no proxy)cookie_file
- path to store cookie fileversion
- isavail protocol versionserver
- server host name or IP addressport
- server port
- Throws:
SocketException
UnknownHostException
IOException
sendQuery
public AvailResponseParser sendQuery(String fqdn)
throws SocketException,
UnknownHostException,
IOException
- Sends a query
- Parameters:
fqdn
- fully-qualified domain name to be checked
- Returns:
- no return value
- Throws:
SocketException
UnknownHostException
IOException