public class WsRemoteEndpointBasic extends WsRemoteEndpointBase implements RemoteEndpoint.Basic
RemoteEndpoint.Async, RemoteEndpoint.Basicbase| Modifier and Type | Method and Description |
|---|---|
java.io.OutputStream |
getSendStream() |
java.io.Writer |
getSendWriter() |
void |
sendBinary(java.nio.ByteBuffer data)
Send the message, blocking until the message is sent.
|
void |
sendBinary(java.nio.ByteBuffer partialByte,
boolean isLast)
Sends part of a binary message to the remote endpoint.
|
void |
sendObject(java.lang.Object o)
Encodes object as a message and sends it to the remote endpoint.
|
void |
sendText(java.lang.String text)
Send the message, blocking until the message is sent.
|
void |
sendText(java.lang.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(java.lang.String text)
throws java.io.IOException
javax.websocket.RemoteEndpoint.BasicsendText in interface RemoteEndpoint.Basictext - The text message to send.java.io.IOException - if an I/O error occurs during the sending of the
message.public void sendBinary(java.nio.ByteBuffer data)
throws java.io.IOException
javax.websocket.RemoteEndpoint.BasicsendBinary in interface RemoteEndpoint.Basicdata - The binary message to sendjava.io.IOException - if an I/O error occurs during the sending of the
message.public void sendText(java.lang.String fragment,
boolean isLast)
throws java.io.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 falsejava.io.IOException - if an I/O error occurs during the sending of the
message.public void sendBinary(java.nio.ByteBuffer partialByte,
boolean isLast)
throws java.io.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 falsejava.io.IOException - if an I/O error occurs during the sending of the
message.public java.io.OutputStream getSendStream()
throws java.io.IOException
getSendStream in interface RemoteEndpoint.Basicjava.io.IOExceptionpublic java.io.Writer getSendWriter()
throws java.io.IOException
getSendWriter in interface RemoteEndpoint.Basicjava.io.IOExceptionpublic void sendObject(java.lang.Object o)
throws java.io.IOException,
EncodeException
javax.websocket.RemoteEndpoint.BasicsendObject in interface RemoteEndpoint.Basico - The object to be sent.java.io.IOException - if an I/O error occurs during the sending of the
message.EncodeException - if there was a problem encoding the
data object as a websocket message.Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.