|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgnu.inet.finger.FingerConnection
public class FingerConnection
A client for the finger protocol described in RFC 1288.
Field Summary | |
---|---|
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 Summary | |
---|---|
FingerConnection(java.lang.String host)
Creates a new finger connection. |
|
FingerConnection(java.lang.String host,
int port)
Creates a new finger connection. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_PORT
protected java.net.Socket socket
protected boolean verbose
Constructor Detail |
---|
public FingerConnection(java.lang.String host) throws java.io.IOException
host
- the name of the internet host to connect to
java.io.IOException
public 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 to
java.io.IOException
Method Detail |
---|
public boolean isVerbose()
public void setVerbose(boolean verbose)
verbose
- true for more verbose, false otherwisepublic java.lang.String list() throws java.io.IOException
java.io.IOException
public java.lang.String finger(java.lang.String username) throws java.io.IOException
username
- the user to finger
java.io.IOException
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |