Class AbstractJsrRemote
- java.lang.Object
-
- org.eclipse.jetty.websocket.jsr356.AbstractJsrRemote
-
- All Implemented Interfaces:
RemoteEndpoint
- Direct Known Subclasses:
JsrAsyncRemote,JsrBasicRemote
public abstract class AbstractJsrRemote extends Object implements RemoteEndpoint
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface javax.websocket.RemoteEndpoint
RemoteEndpoint.Async, RemoteEndpoint.Basic
-
-
Field Summary
Fields Modifier and Type Field Description protected EncoderFactoryencodersprotected org.eclipse.jetty.websocket.common.WebSocketRemoteEndpointjettyRemoteprotected JsrSessionsession
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractJsrRemote(JsrSession session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassertMessageNotNull(Object data)protected voidassertSendHandlerNotNull(SendHandler handler)voidflushBatch()booleangetBatchingAllowed()Future<Void>sendObjectViaFuture(Object data)voidsendPing(ByteBuffer data)voidsendPong(ByteBuffer data)voidsetBatchingAllowed(boolean allowed)
-
-
-
Field Detail
-
session
protected final JsrSession session
-
jettyRemote
protected final org.eclipse.jetty.websocket.common.WebSocketRemoteEndpoint jettyRemote
-
encoders
protected final EncoderFactory encoders
-
-
Constructor Detail
-
AbstractJsrRemote
protected AbstractJsrRemote(JsrSession session)
-
-
Method Detail
-
assertMessageNotNull
protected void assertMessageNotNull(Object data)
-
assertSendHandlerNotNull
protected void assertSendHandlerNotNull(SendHandler handler)
-
flushBatch
public void flushBatch() throws IOException- Specified by:
flushBatchin interfaceRemoteEndpoint- Throws:
IOException
-
getBatchingAllowed
public boolean getBatchingAllowed()
- Specified by:
getBatchingAllowedin interfaceRemoteEndpoint
-
setBatchingAllowed
public void setBatchingAllowed(boolean allowed) throws IOException- Specified by:
setBatchingAllowedin interfaceRemoteEndpoint- Throws:
IOException
-
sendPing
public void sendPing(ByteBuffer data) throws IOException, IllegalArgumentException
- Specified by:
sendPingin interfaceRemoteEndpoint- Throws:
IOExceptionIllegalArgumentException
-
sendPong
public void sendPong(ByteBuffer data) throws IOException, IllegalArgumentException
- Specified by:
sendPongin interfaceRemoteEndpoint- Throws:
IOExceptionIllegalArgumentException
-
-