|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HandlerInterface
Field Summary | |
---|---|
static java.lang.String |
ARG_CLIENT_IP
|
static java.lang.String |
ARG_HOST
|
Method Summary | |
---|---|
void |
exit()
close the output |
void |
onBinaryReceived(byte[] frame)
process client side binary message. |
void |
onClientDisconnected()
invoked after client is disconnected by network issue etc. |
void |
onHandShake(java.lang.String path,
java.lang.String protocol,
java.lang.String cookie)
|
void |
onTextReceived(java.lang.String result)
process client side text message |
void |
setOutput(com.toremote.websocket.OutputInterface output)
setup output |
void |
setSessionId(java.lang.String id)
set up session id for this session |
java.lang.String |
toJson()
|
Field Detail |
---|
static final java.lang.String ARG_CLIENT_IP
static final java.lang.String ARG_HOST
Method Detail |
---|
void setOutput(com.toremote.websocket.OutputInterface output)
output
- OutputInterface
void onHandShake(java.lang.String path, java.lang.String protocol, java.lang.String cookie) throws java.lang.Exception
path
- url pathprotocol
- websocket protocol, not used.cookie
- cookie from client side browser
java.lang.Exception
void onTextReceived(java.lang.String result) throws java.lang.Exception
result
-
java.lang.Exception
void exit()
void onBinaryReceived(byte[] frame) throws java.lang.Exception
frame
-
java.lang.Exception
void setSessionId(java.lang.String id)
id
- java.lang.String toJson()
void onClientDisconnected()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |