public class WsRemoteEndpointBasic extends WsRemoteEndpointBase implements RemoteEndpoint.Basic
RemoteEndpoint.Async, RemoteEndpoint.Basicbase| Modifier and Type | Method and Description |
|---|---|
OutputStream |
getSendStream() |
Writer |
getSendWriter() |
void |
sendBinary(ByteBuffer data)
Send the message, blocking until the message is sent.
|
void |
sendBinary(ByteBuffer partialByte,
boolean isLast)
Sends part of a binary message to the remote endpoint.
|
void |
sendObject(Object o) |
void |
sendText(String text)
Send the message, blocking until the message is sent.
|
void |
sendText(String fragment,
boolean isLast)
Sends part of a text message to the remote endpoint.
|
flushBatch, getBatchingAllowed, sendPing, sendPong, setBatchingAllowedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflushBatch, getBatchingAllowed, sendPing, sendPong, setBatchingAllowedpublic void sendText(String text) throws IOException
javax.websocket.RemoteEndpoint.BasicsendText in interface RemoteEndpoint.Basictext - The text message to send.IOExceptionpublic void sendBinary(ByteBuffer data) throws IOException
javax.websocket.RemoteEndpoint.BasicsendBinary in interface RemoteEndpoint.Basicdata - The binary message to sendIOExceptionpublic void sendText(String fragment, boolean isLast) throws IOException
javax.websocket.RemoteEndpoint.BasicsendText in interface RemoteEndpoint.Basicfragment - The partial message to sendisLast - true if this is the last part of the
message, otherwise falseIOExceptionpublic void sendBinary(ByteBuffer partialByte, boolean isLast) throws IOException
javax.websocket.RemoteEndpoint.BasicsendBinary in interface RemoteEndpoint.BasicpartialByte - The partial message to sendisLast - true if this is the last part of the
message, otherwise falseIOExceptionpublic OutputStream getSendStream() throws IOException
getSendStream in interface RemoteEndpoint.BasicIOExceptionpublic Writer getSendWriter() throws IOException
getSendWriter in interface RemoteEndpoint.BasicIOExceptionpublic void sendObject(Object o) throws IOException, EncodeException
sendObject in interface RemoteEndpoint.BasicIOExceptionEncodeExceptionCopyright © 2000-2013 Apache Software Foundation. All Rights Reserved.