|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.collab.Client
ucar.unidata.idv.collab.CollabClient
public class CollabClient
This provides IDV specific extensions to the
Client class to
support the collaboration mechanism with the IDV.
In particular it has a name (the name of the client)
and a flag to show if this is the Client object
that represents the local user.
In the future this could hold more information: contact info, etc.
| Constructor Summary | |
|---|---|
CollabClient()
Create a dummy version of this object. |
|
CollabClient(CollabManager collabManager,
Socket socket)
Create this client with the already existing socket. |
|
CollabClient(CollabManager collabManager,
String hostName,
int port)
Create the client and have it try to connect to a Server at the given hostname and port. |
|
| Method Summary | |
|---|---|
boolean |
getIsLocal()
Get the IsLocal property. |
String |
getName()
Get the Name property. |
void |
handleServerMessage(String msg)
Route the message to the CollabManager |
void |
setIsLocal(boolean value)
Set the isLocal property. |
void |
setName(String value)
Set the Name property. |
| Methods inherited from class ucar.unidata.collab.Client |
|---|
close, debug, getHostname, getOkToReceive, getOkToSend, getValid, isConnectionOk, logException, main, read, setHostname, setOkToReceive, setOkToSend, setValid, toString, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CollabClient()
public CollabClient(CollabManager collabManager,
String hostName,
int port)
throws IOException
Server
You can check if the connection was successful
with Client.isConnectionOk()
collabManager - Reference to the singleton CollabManagerhostName - Host to connect toport - Port on host to connect to
IOException
public CollabClient(CollabManager collabManager,
Socket socket)
throws IOException
collabManager - Reference to the singleton CollabManagersocket - The socket
IOException| Method Detail |
|---|
public void handleServerMessage(String msg)
handleServerMessage in class Clientmsg - The messagepublic void setName(String value)
value - The new value for Namepublic String getName()
public void setIsLocal(boolean value)
value - The new value for isLocalpublic boolean getIsLocal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||