|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.grizzly.websockets.WebSocketAdapter
public class WebSocketAdapter
| Constructor Summary | |
|---|---|
WebSocketAdapter()
|
|
| Method Summary | |
|---|---|
void |
onClose(WebSocket socket,
DataFrame frame)
Invoked when WebSocket.onClose(DataFrame) has been called on a
particular WebSocket instance. |
void |
onConnect(WebSocket socket)
Invoked when the opening handshake has been completed for a specific WebSocket instance. |
void |
onFragment(WebSocket socket,
byte[] fragment,
boolean last)
Invoked when WebSocket.onFragment(boolean, byte[]) has been called
on a particular WebSocket instance. |
void |
onFragment(WebSocket socket,
String fragment,
boolean last)
Invoked when WebSocket.onFragment(boolean, String) has been called
on a particular WebSocket instance. |
void |
onMessage(WebSocket socket,
byte[] bytes)
Invoked when WebSocket.onMessage(String) has been called on a
particular WebSocket instance. |
void |
onMessage(WebSocket socket,
String text)
Invoked when WebSocket.onMessage(String) has been called on a
particular WebSocket instance. |
void |
onPing(WebSocket socket,
byte[] bytes)
Invoked when WebSocket.onPing(DataFrame) has been called on a
particular WebSocket instance. |
void |
onPong(WebSocket socket,
byte[] bytes)
Invoked when WebSocket.onPong(DataFrame) has been called on a
particular WebSocket instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebSocketAdapter()
| Method Detail |
|---|
public void onClose(WebSocket socket,
DataFrame frame)
WebSocketListener
Invoked when WebSocket.onClose(DataFrame) has been called on a
particular WebSocket instance.
onClose in interface WebSocketListenersocket - the WebSocket being closed.frame - the closing DataFrame sent by the remote end-point.public void onConnect(WebSocket socket)
WebSocketListener
Invoked when the opening handshake has been completed for a specific
WebSocket instance.
onConnect in interface WebSocketListenersocket - the newly connected WebSocket
public void onMessage(WebSocket socket,
String text)
WebSocketListener
Invoked when WebSocket.onMessage(String) has been called on a
particular WebSocket instance.
onMessage in interface WebSocketListenersocket - the WebSocket that received a message.text - the message received.
public void onMessage(WebSocket socket,
byte[] bytes)
WebSocketListener
Invoked when WebSocket.onMessage(String) has been called on a
particular WebSocket instance.
onMessage in interface WebSocketListenersocket - the WebSocket that received a message.bytes - the message received.
public void onPing(WebSocket socket,
byte[] bytes)
WebSocketListener
Invoked when WebSocket.onPing(DataFrame) has been called on a
particular WebSocket instance.
onPing in interface WebSocketListenersocket - the WebSocket that received the ping.bytes - the payload of the ping frame, if any.
public void onPong(WebSocket socket,
byte[] bytes)
WebSocketListener
Invoked when WebSocket.onPong(DataFrame) has been called on a
particular WebSocket instance.
onPong in interface WebSocketListenersocket - the WebSocket that received the pong.bytes - the payload of the pong frame, if any.
public void onFragment(WebSocket socket,
String fragment,
boolean last)
WebSocketListener
Invoked when WebSocket.onFragment(boolean, String) has been called
on a particular WebSocket instance.
onFragment in interface WebSocketListenersocket - the WebSocket received the message fragment.fragment - the message fragment.last - flag indicating if this was the last fragment.
public void onFragment(WebSocket socket,
byte[] fragment,
boolean last)
WebSocketListener
Invoked when WebSocket.onFragment(boolean, byte[]) has been called
on a particular WebSocket instance.
onFragment in interface WebSocketListenersocket - the WebSocket received the message fragment.fragment - the message fragment.last - flag indicating if this was the last fragment.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||