Class JsrBasicRemote
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote
-
- org.eclipse.jetty.websocket.jsr356.JsrBasicRemote
-
- All Implemented Interfaces:
javax.websocket.RemoteEndpoint,javax.websocket.RemoteEndpoint.Basic
public class JsrBasicRemote extends AbstractJsrRemote implements javax.websocket.RemoteEndpoint.Basic
-
-
Field Summary
-
Fields inherited from class org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote
encoders, jettyRemote, session
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsrBasicRemote(JsrSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.OutputStreamgetSendStream()java.io.WritergetSendWriter()voidsendBinary(java.nio.ByteBuffer data)voidsendBinary(java.nio.ByteBuffer partialByte, boolean isLast)voidsendObject(java.lang.Object data)voidsendText(java.lang.String text)voidsendText(java.lang.String partialMessage, boolean isLast)-
Methods inherited from class org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote
assertMessageNotNull, assertSendHandlerNotNull, flushBatch, getBatchingAllowed, sendObjectViaFuture, sendPing, sendPong, setBatchingAllowed
-
-
-
-
Constructor Detail
-
JsrBasicRemote
protected JsrBasicRemote(JsrSession session)
-
-
Method Detail
-
getSendStream
public java.io.OutputStream getSendStream() throws java.io.IOException- Specified by:
getSendStreamin interfacejavax.websocket.RemoteEndpoint.Basic- Throws:
java.io.IOException
-
getSendWriter
public java.io.Writer getSendWriter() throws java.io.IOException- Specified by:
getSendWriterin interfacejavax.websocket.RemoteEndpoint.Basic- Throws:
java.io.IOException
-
sendBinary
public void sendBinary(java.nio.ByteBuffer data) throws java.io.IOException- Specified by:
sendBinaryin interfacejavax.websocket.RemoteEndpoint.Basic- Throws:
java.io.IOException
-
sendBinary
public void sendBinary(java.nio.ByteBuffer partialByte, boolean isLast) throws java.io.IOException- Specified by:
sendBinaryin interfacejavax.websocket.RemoteEndpoint.Basic- Throws:
java.io.IOException
-
sendObject
public void sendObject(java.lang.Object data) throws java.io.IOException, javax.websocket.EncodeException- Specified by:
sendObjectin interfacejavax.websocket.RemoteEndpoint.Basic- Throws:
java.io.IOExceptionjavax.websocket.EncodeException
-
sendText
public void sendText(java.lang.String text) throws java.io.IOException- Specified by:
sendTextin interfacejavax.websocket.RemoteEndpoint.Basic- Throws:
java.io.IOException
-
sendText
public void sendText(java.lang.String partialMessage, boolean isLast) throws java.io.IOException- Specified by:
sendTextin interfacejavax.websocket.RemoteEndpoint.Basic- Throws:
java.io.IOException
-
-