|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openuat.channel.http.CommHex
public class CommHex
| Constructor Summary | |
|---|---|
CommHex()
Standard Constructor |
|
CommHex(java.lang.String _serverLocation)
Constructor updating the location of the server |
|
| Method Summary | |
|---|---|
java.lang.String |
getLog()
|
void |
getMsg(java.lang.String _folder,
ifListener _guest)
Triggers the reception of all message from a specific folder. |
void |
getMsgSince(java.lang.String _folder,
int _time,
ifListener _guest)
Triggers the reception of all messages which were sent starting at a specific time untul now from a specific folder. |
void |
getSince()
Called by the run method when the reception of messages, sent at a specific time until now is triggered by getMsgSince |
void |
run()
Run method of the Thread. |
void |
send()
Called by the run method when sending of a message, is triggered by sendMsg |
void |
sendMsg(java.lang.String _folder,
java.lang.String _msg,
ifListener _guest)
Triggers sending of a message |
void |
setServerLocation(java.lang.String _serverLocation)
Updates the location of the server |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommHex()
public CommHex(java.lang.String _serverLocation)
_serverLocation - location of the server where the put.php and get.php scripts lie| Method Detail |
|---|
public java.lang.String getLog()
public void setServerLocation(java.lang.String _serverLocation)
_serverLocation - location of the server where the put.php and get.php scripts lie
public void getMsg(java.lang.String _folder,
ifListener _guest)
implementation of ifComm
getMsg in interface ifComm_folder - folder name where the desired messages are_guest - calling application threadifComm
public void getMsgSince(java.lang.String _folder,
int _time,
ifListener _guest)
implementation of ifComm
getMsgSince in interface ifComm_folder - folder name where the desired messages are_time - starting time, oldest wanted message_guest - calling application threadifCommpublic void getSince()
Comm#run(),
Comm#getMsgSince(String, int , ifListener)
public void sendMsg(java.lang.String _folder,
java.lang.String _msg,
ifListener _guest)
sendMsg in interface ifComm_folder - folder name where the message shall be placed_msg - message to send_guest - calling application threadpublic void send()
Comm#run(),
Comm#sendMsg(String, String, ifListener)public void run()
calls the specific methods when a notify() is send by another thread.
run in interface java.lang.Runnable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||