|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.Client
public class Client
A generic client object.
| Constructor Summary | |
|---|---|
Client()
_more_ |
|
Client(Socket socket)
_more_ |
|
Client(String host)
Create a new Client connection, connection to the given hostname which is of the form: hostname[:optional port number]. |
|
Client(String host,
int thePort)
Create a new Client connection, connection to the given hostname which is of the form: hostname[:optional port number]. |
|
| Method Summary | |
|---|---|
void |
close()
_more_ |
void |
debug(String msg)
_more_ |
String |
getHostname()
Get the Hostname property. |
boolean |
getOkToReceive()
Get the OkToReceive property. |
boolean |
getOkToSend()
Get the OkToSend property. |
boolean |
getValid()
Get the Valid property. |
protected void |
handleServerMessage(String message)
Handle the message rcvd from the server. |
boolean |
isConnectionOk()
Is this client currently connected. |
protected void |
logException(String msg,
Exception exc)
_more_ |
static void |
main(String[] args)
_more_ |
protected String |
read()
_more_ |
void |
setHostname(String value)
Set the Hostname property. |
void |
setOkToReceive(boolean value)
Set the OkToReceive property. |
void |
setOkToSend(boolean value)
Set the OkToSend property. |
void |
setValid(boolean value)
Set the Valid property. |
String |
toString()
_more_ |
void |
write(String message)
_more_ |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Client()
public Client(String host)
host -
public Client(String host,
int thePort)
host - thePort -
public Client(Socket socket)
throws IOException
socket -
IOException| Method Detail |
|---|
public void debug(String msg)
msg - public boolean isConnectionOk()
protected void handleServerMessage(String message)
message -
protected String read()
throws IOException
IOExceptionpublic void close()
public void write(String message)
message -
protected void logException(String msg,
Exception exc)
msg - exc - public String toString()
toString in class Objectpublic void setHostname(String value)
value - The new value for Hostnamepublic String getHostname()
public void setValid(boolean value)
value - The new value for Validpublic boolean getValid()
public void setOkToSend(boolean value)
value - The new value for OkToSendpublic boolean getOkToSend()
public void setOkToReceive(boolean value)
value - The new value for OkToReceivepublic boolean getOkToReceive()
public static void main(String[] args)
args -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||