public class WsRemoteEndpointBasic extends WsRemoteEndpointBase implements RemoteEndpoint.Basic
RemoteEndpoint.Async, RemoteEndpoint.Basic
base
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) |
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, setBatchingAllowed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
flushBatch, getBatchingAllowed, sendPing, sendPong, setBatchingAllowed
public void sendText(java.lang.String text) throws java.io.IOException
javax.websocket.RemoteEndpoint.Basic
sendText
in interface RemoteEndpoint.Basic
text
- The text message to send.java.io.IOException
public void sendBinary(java.nio.ByteBuffer data) throws java.io.IOException
javax.websocket.RemoteEndpoint.Basic
sendBinary
in interface RemoteEndpoint.Basic
data
- The binary message to sendjava.io.IOException
public void sendText(java.lang.String fragment, boolean isLast) throws java.io.IOException
javax.websocket.RemoteEndpoint.Basic
sendText
in interface RemoteEndpoint.Basic
fragment
- The partial message to sendisLast
- true
if this is the last part of the
message, otherwise false
java.io.IOException
public void sendBinary(java.nio.ByteBuffer partialByte, boolean isLast) throws java.io.IOException
javax.websocket.RemoteEndpoint.Basic
sendBinary
in interface RemoteEndpoint.Basic
partialByte
- The partial message to sendisLast
- true
if this is the last part of the
message, otherwise false
java.io.IOException
public java.io.OutputStream getSendStream() throws java.io.IOException
getSendStream
in interface RemoteEndpoint.Basic
java.io.IOException
public java.io.Writer getSendWriter() throws java.io.IOException
getSendWriter
in interface RemoteEndpoint.Basic
java.io.IOException
public void sendObject(java.lang.Object o) throws java.io.IOException, EncodeException
sendObject
in interface RemoteEndpoint.Basic
java.io.IOException
EncodeException
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.