Java org.apache.commons.net.whois WhoisClient fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.net.whois WhoisClient fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.net.whois WhoisClient.

The text is from its open source code.

Field

StringDEFAULT_HOST
The default whois host to query.

Constructor

WhoisClient()
The default whois constructor.

Method

voidconnect(InetAddress host)
Opens a Socket connected to a remote host at the current default port and originating from the current host at a system assigned port.
voidconnect(InetAddress host, int port)
Opens a Socket connected to a remote host at the specified port and originating from the current host at a system assigned port.
voiddisconnect()
Disconnects the socket connection.
InputStreamgetInputStream(String handle)
Queries the connected whois server for information regarding the given handle and returns the InputStream of the network connection.
InetAddressgetRemoteAddress()
booleanisConnected()
Returns true if the client is currently connected to a server.
Stringquery(String handle)
Queries the connected whois server for information regarding the given handle.
voidsetConnectTimeout(int connectTimeout)
Sets the connection timeout in milliseconds, which will be passed to the Socket object's connect() method.
voidsetDefaultTimeout(int timeout)
Set the default timeout in milliseconds to use when opening a socket.
voidsetSoTimeout(int timeout)
Set the timeout in milliseconds of a currently open connection.