|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.abstracthorizon.mercury.finger.SimpleFinger
public class SimpleFinger
Simple finger
Field Summary | |
---|---|
protected InetAddress |
hostAddress
Host address |
protected String |
hostName
Hostname |
protected String |
lastResult
Last invocation's result |
protected org.slf4j.Logger |
logger
Logger |
protected int |
timeout
Timeout. |
protected String |
userName
Username |
Constructor Summary | |
---|---|
SimpleFinger()
Constructor |
Method Summary | |
---|---|
void |
finger()
Note: Address or host must be populated. |
static String |
finger(String user)
Invokes finger function |
static String |
finger(String user,
String host)
Invokes finger |
InetAddress |
getHostAddress()
Returns host address |
String |
getHostName()
Returns host name |
String |
getLastResult()
Returns last result |
int |
getTimeout()
Returns timeout |
String |
getUser()
Returns user |
static void |
main(String[] args)
|
void |
setHostAddress(InetAddress address)
Sets host address |
void |
setHostName(String host)
Sets host name |
void |
setTimeout(int timeout)
Sets timeout |
void |
setUser(String user)
Sets user |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.slf4j.Logger logger
protected String userName
protected String hostName
protected InetAddress hostAddress
protected int timeout
protected String lastResult
Constructor Detail |
---|
public SimpleFinger()
Method Detail |
---|
public String getHostName()
public void setHostName(String host)
host
- host namepublic InetAddress getHostAddress()
public void setHostAddress(InetAddress address)
address
- host addresspublic String getUser()
public void setUser(String user)
user
- userpublic int getTimeout()
public void setTimeout(int timeout)
timeout
- timeoutpublic String getLastResult()
public void finger() throws UnknownHostException, IOException
UnknownHostException
IOException
public static String finger(String user) throws UnknownHostException, IOException
user
- username in format user@host
UnknownHostException
IOException
public static String finger(String user, String host) throws UnknownHostException, IOException
user
- usernamehost
- hostname
UnknownHostException
IOException
public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |