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 protected
JsrBasicRemote(JsrSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.OutputStream
getSendStream()
java.io.Writer
getSendWriter()
void
sendBinary(java.nio.ByteBuffer data)
void
sendBinary(java.nio.ByteBuffer partialByte, boolean isLast)
void
sendObject(java.lang.Object data)
void
sendText(java.lang.String text)
void
sendText(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:
getSendStream
in interfacejavax.websocket.RemoteEndpoint.Basic
- Throws:
java.io.IOException
-
getSendWriter
public java.io.Writer getSendWriter() throws java.io.IOException
- Specified by:
getSendWriter
in interfacejavax.websocket.RemoteEndpoint.Basic
- Throws:
java.io.IOException
-
sendBinary
public void sendBinary(java.nio.ByteBuffer data) throws java.io.IOException
- Specified by:
sendBinary
in interfacejavax.websocket.RemoteEndpoint.Basic
- Throws:
java.io.IOException
-
sendBinary
public void sendBinary(java.nio.ByteBuffer partialByte, boolean isLast) throws java.io.IOException
- Specified by:
sendBinary
in 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:
sendObject
in interfacejavax.websocket.RemoteEndpoint.Basic
- Throws:
java.io.IOException
javax.websocket.EncodeException
-
sendText
public void sendText(java.lang.String text) throws java.io.IOException
- Specified by:
sendText
in interfacejavax.websocket.RemoteEndpoint.Basic
- Throws:
java.io.IOException
-
sendText
public void sendText(java.lang.String partialMessage, boolean isLast) throws java.io.IOException
- Specified by:
sendText
in interfacejavax.websocket.RemoteEndpoint.Basic
- Throws:
java.io.IOException
-
-