public class FingerConnection
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_PORT
The default finger port.
|
protected java.net.Socket |
socket
The underlying socket used for communications.
|
protected boolean |
verbose
If we want a verbose response.
|
| Constructor and Description |
|---|
FingerConnection(java.lang.String host)
Creates a new finger connection.
|
FingerConnection(java.lang.String host,
int port)
Creates a new finger connection.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
finger(java.lang.String username)
Fingers the specified user.
|
java.lang.String |
finger(java.lang.String username,
java.lang.String hostname)
Fingers the specified user at the specified host.
|
boolean |
isVerbose()
Retrieves the verbose flag.
|
java.lang.String |
list()
Lists the available users.
|
void |
setVerbose(boolean verbose)
Sets the verbose flag.
|
public static final int DEFAULT_PORT
protected java.net.Socket socket
protected boolean verbose
public FingerConnection(java.lang.String host)
throws java.io.IOException
host - the name of the internet host to connect tojava.io.IOExceptionpublic FingerConnection(java.lang.String host,
int port)
throws java.io.IOException
host - the name of the internet host to connect toport - the port to connect tojava.io.IOExceptionpublic boolean isVerbose()
public void setVerbose(boolean verbose)
verbose - true for more verbose, false otherwisepublic java.lang.String list()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String finger(java.lang.String username)
throws java.io.IOException
username - the user to fingerjava.io.IOExceptionpublic java.lang.String finger(java.lang.String username,
java.lang.String hostname)
throws java.io.IOException
username - the user to finger (null for any user)hostname - the domain of the user (null for any domain)java.io.IOException© Copyright 2003 The Free Software Foundation, all rights reserved