Class JsrBasicRemote
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote
-
- org.eclipse.jetty.websocket.jsr356.JsrBasicRemote
-
- All Implemented Interfaces:
RemoteEndpoint,RemoteEndpoint.Basic
public class JsrBasicRemote extends AbstractJsrRemote implements RemoteEndpoint.Basic
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.websocket.RemoteEndpoint
RemoteEndpoint.Async, 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 OutputStreamgetSendStream()WritergetSendWriter()voidsendBinary(ByteBuffer data)voidsendBinary(ByteBuffer partialByte, boolean isLast)voidsendObject(Object data)voidsendText(String text)voidsendText(String partialMessage, boolean isLast)-
Methods inherited from class org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote
assertMessageNotNull, assertSendHandlerNotNull, flushBatch, getBatchingAllowed, sendObjectViaFuture, sendPing, sendPong, setBatchingAllowed
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.websocket.RemoteEndpoint
flushBatch, getBatchingAllowed, sendPing, sendPong, setBatchingAllowed
-
-
-
-
Constructor Detail
-
JsrBasicRemote
protected JsrBasicRemote(JsrSession session)
-
-
Method Detail
-
getSendStream
public OutputStream getSendStream() throws IOException
- Specified by:
getSendStreamin interfaceRemoteEndpoint.Basic- Throws:
IOException
-
getSendWriter
public Writer getSendWriter() throws IOException
- Specified by:
getSendWriterin interfaceRemoteEndpoint.Basic- Throws:
IOException
-
sendBinary
public void sendBinary(ByteBuffer data) throws IOException
- Specified by:
sendBinaryin interfaceRemoteEndpoint.Basic- Throws:
IOException
-
sendBinary
public void sendBinary(ByteBuffer partialByte, boolean isLast) throws IOException
- Specified by:
sendBinaryin interfaceRemoteEndpoint.Basic- Throws:
IOException
-
sendObject
public void sendObject(Object data) throws IOException, EncodeException
- Specified by:
sendObjectin interfaceRemoteEndpoint.Basic- Throws:
IOExceptionEncodeException
-
sendText
public void sendText(String text) throws IOException
- Specified by:
sendTextin interfaceRemoteEndpoint.Basic- Throws:
IOException
-
sendText
public void sendText(String partialMessage, boolean isLast) throws IOException
- Specified by:
sendTextin interfaceRemoteEndpoint.Basic- Throws:
IOException
-
-