public static class RemoteEndpointImpl.Basic extends RemoteEndpointImpl implements javax.websocket.RemoteEndpoint.Basic
RemoteEndpointImpl.Async, RemoteEndpointImpl.Basic| Constructor and Description |
|---|
Basic(SessionImpl session,
WebSocket webSocket,
javax.websocket.Endpoint endpoint,
javax.websocket.EndpointConfig endpointConfig) |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
getSendStream() |
Writer |
getSendWriter() |
void |
sendBinary(ByteBuffer data) |
void |
sendBinary(ByteBuffer partialByte,
boolean isLast) |
void |
sendObject(Object data) |
void |
sendText(String text) |
void |
sendText(String partialMessage,
boolean isLast) |
flushBatch, getBatchingAllowed, getEncoderHandlerMap, getEndpoint, getSession, getWebSocket, sendPing, sendPong, setBatchingAllowedpublic Basic(SessionImpl session, WebSocket webSocket, javax.websocket.Endpoint endpoint, javax.websocket.EndpointConfig endpointConfig)
public void sendText(String text) throws IOException
sendText in interface javax.websocket.RemoteEndpoint.BasicIOExceptionpublic void sendBinary(ByteBuffer data) throws IOException
sendBinary in interface javax.websocket.RemoteEndpoint.BasicIOExceptionpublic void sendText(String partialMessage, boolean isLast) throws IOException
sendText in interface javax.websocket.RemoteEndpoint.BasicIOExceptionpublic void sendBinary(ByteBuffer partialByte, boolean isLast) throws IOException
sendBinary in interface javax.websocket.RemoteEndpoint.BasicIOExceptionpublic OutputStream getSendStream() throws IOException
getSendStream in interface javax.websocket.RemoteEndpoint.BasicIOExceptionpublic Writer getSendWriter() throws IOException
getSendWriter in interface javax.websocket.RemoteEndpoint.BasicIOExceptionpublic void sendObject(Object data) throws IOException, javax.websocket.EncodeException
sendObject in interface javax.websocket.RemoteEndpoint.BasicIOExceptionjavax.websocket.EncodeExceptionCopyright © 2017. All rights reserved.