gnu.inet.finger
Class FingerConnection
java.lang.Object
gnu.inet.finger.FingerConnection
public class FingerConnection
extends java.lang.Object
A client for the finger protocol described in RFC 1288.
- Chris Burdess
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.
|
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.
|
DEFAULT_PORT
public static final int DEFAULT_PORT
The default finger port.
- 79
socket
protected java.net.Socket socket
The underlying socket used for communications.
verbose
protected boolean verbose
If we want a verbose response.
FingerConnection
public FingerConnection(java.lang.String host)
throws java.io.IOException
Creates a new finger connection.
host
- the name of the internet host to connect to
FingerConnection
public FingerConnection(java.lang.String host,
int port)
throws java.io.IOException
Creates a new finger connection.
host
- the name of the internet host to connect toport
- the port to connect to
finger
public java.lang.String finger(java.lang.String username)
throws java.io.IOException
Fingers the specified user.
username
- the user to finger
- information about all matching users
finger
public java.lang.String finger(java.lang.String username,
java.lang.String hostname)
throws java.io.IOException
Fingers the specified user at the specified host.
username
- the user to finger (null for any user)hostname
- the domain of the user (null for any domain)
- information about all matching users
isVerbose
public boolean isVerbose()
Retrieves the verbose flag.
If true, the server should provide more output.
list
public java.lang.String list()
throws java.io.IOException
Lists the available users.
setVerbose
public void setVerbose(boolean verbose)
Sets the verbose flag.
If true, the server should provide more output.
verbose
- true for more verbose, false otherwise
© Copyright 2003 The Free Software Foundation,
all rights reserved