|
"WEBNMS_5 API Docs" | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.adventnet.nms.broadcast.BroadcastClient
public class BroadcastClient
This file acts as the client for Broadcast. he registers with MainSocketClient* and when a broadcast message is received shows it in the status bar by defualt The user can also register to this and receive the message and handle it.
Method Summary | |
---|---|
void |
close()
Another interface method. |
static BroadcastClient |
getInstance()
This method returns the instance of broadcastClient. |
void |
receive(byte[] data)
This method will be called whenever the session receives data from the server. |
void |
registerForResponse(BroadcastListener bl)
the UI class should register with the BroadcastClient inorder to receive the responses. |
void |
send(java.lang.String message,
java.lang.String criteria)
This method is used to send message across clients. |
void |
unRegisterForResponse(BroadcastListener bl)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static BroadcastClient getInstance()
public void send(java.lang.String message, java.lang.String criteria)
message
- The string that has to be broadcasted.criteria
- If public void receive(byte[] data)
SocketConnection
receive
in interface SocketConnection
data
- The byte array received from the server will be passed.public void registerForResponse(BroadcastListener bl)
bl
- Interface which listens for the message.public void unRegisterForResponse(BroadcastListener bl)
public void close()
close
in interface SocketConnection
|
"WEBNMS_5 API Docs" | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |