public class WebSocketStreamingHandlerAdapter extends Object implements WebSocketStreamingHandler
WebSocketStreamingHandlerAdapter| Constructor and Description |
|---|
WebSocketStreamingHandlerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onBinaryStream(WebSocket webSocket,
InputStream inputStream)
Invoked when a byte message is received.
|
void |
onByteMessage(WebSocket webSocket,
byte[] data,
int offset,
int length)
Invoked when a byte message is received.
|
void |
onClose(WebSocket webSocket)
Invoked when a
WebSocket is closed. |
void |
onError(WebSocket webSocket,
WebSocketProcessor.WebSocketException t)
Invoked when a
WebSocket produces an error. |
void |
onOpen(WebSocket webSocket)
Invoked when a
WebSocket is opened. |
void |
onTextMessage(WebSocket webSocket,
String data)
Invoked when a String message is received
|
void |
onTextStream(WebSocket webSocket,
Reader reader)
Invoked when a String message is received
|
public void onBinaryStream(WebSocket webSocket, InputStream inputStream) throws IOException
WebSocketStreamingHandleronBinaryStream in interface WebSocketStreamingHandlerwebSocket - a WebSocketIOExceptionpublic void onTextStream(WebSocket webSocket, Reader reader) throws IOException
WebSocketStreamingHandleronTextStream in interface WebSocketStreamingHandlerwebSocket - a WebSocketIOExceptionpublic void onByteMessage(WebSocket webSocket, byte[] data, int offset, int length) throws IOException
WebSocketHandleronByteMessage in interface WebSocketHandlerwebSocket - a WebSocketIOExceptionpublic void onTextMessage(WebSocket webSocket, String data) throws IOException
WebSocketHandleronTextMessage in interface WebSocketHandlerwebSocket - a WebSocketIOExceptionpublic void onOpen(WebSocket webSocket) throws IOException
WebSocketHandlerWebSocket is opened.onOpen in interface WebSocketHandlerIOExceptionpublic void onClose(WebSocket webSocket)
WebSocketHandlerWebSocket is closed.onClose in interface WebSocketHandlerpublic void onError(WebSocket webSocket, WebSocketProcessor.WebSocketException t)
WebSocketHandlerWebSocket produces an error.onError in interface WebSocketHandlerCopyright © 2016. All rights reserved.