Class JakartaWebSocketRemoteEndpoint
java.lang.Object
org.eclipse.jetty.ee9.websocket.jakarta.common.JakartaWebSocketRemoteEndpoint
- All Implemented Interfaces:
 jakarta.websocket.RemoteEndpoint, OutgoingFrames
- Direct Known Subclasses:
 JakartaWebSocketAsyncRemote, JakartaWebSocketBasicRemote
public class JakartaWebSocketRemoteEndpoint
extends Object
implements jakarta.websocket.RemoteEndpoint, OutgoingFrames
- 
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.websocket.RemoteEndpoint
jakarta.websocket.RemoteEndpoint.Async, jakarta.websocket.RemoteEndpoint.Basic - 
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected byteprotected longprotected final JakartaWebSocketSession - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJakartaWebSocketRemoteEndpoint(JakartaWebSocketSession session, CoreSession coreSession)  - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertMessageNotNull(Object data) protected voidassertSendHandlerNotNull(jakarta.websocket.SendHandler handler) voidbooleanlongprotected MessageOutputStreamprotected MessageWritervoidA frame, callback, intended for the network layer.voidsendFrame(OutgoingEntry entry) voidsendObject(Object data, Callback callback) voidsendPing(ByteBuffer data) voidsendPong(ByteBuffer data) voidsetBatchingAllowed(boolean allowed) voidsetIdleTimeout(long ms)  
- 
Field Details
- 
session
 - 
batch
protected boolean batch - 
messageType
protected byte messageType - 
messageWriteTimeout
protected long messageWriteTimeout 
 - 
 - 
Constructor Details
- 
JakartaWebSocketRemoteEndpoint
 
 - 
 - 
Method Details
- 
newMessageWriter
 - 
newMessageOutputStream
 - 
flushBatch
- Specified by:
 flushBatchin interfacejakarta.websocket.RemoteEndpoint- Throws:
 IOException
 - 
getBatchingAllowed
public boolean getBatchingAllowed()- Specified by:
 getBatchingAllowedin interfacejakarta.websocket.RemoteEndpoint
 - 
setBatchingAllowed
- Specified by:
 setBatchingAllowedin interfacejakarta.websocket.RemoteEndpoint- Throws:
 IOException
 - 
getIdleTimeout
public long getIdleTimeout() - 
setIdleTimeout
public void setIdleTimeout(long ms)  - 
sendFrame
Description copied from interface:OutgoingFramesA frame, callback, intended for the network layer.Note: the frame can undergo many transformations in the various layers and extensions present in the implementation.
If you are implementing a mutation, you are obliged to handle the incoming Callback appropriately.
- Specified by:
 sendFramein interfaceOutgoingFrames- Parameters:
 frame- the frame to eventually write to the network layer.callback- the callback to notify when the frame is written.batch- the batch mode requested by the sender.
 - 
sendFrame
Description copied from interface:OutgoingFrames- Specified by:
 sendFramein interfaceOutgoingFrames- Parameters:
 entry- the frame to eventually write to the network layer.
 - 
sendObject
public void sendObject(Object data, Callback callback) throws IOException, jakarta.websocket.EncodeException - Throws:
 IOExceptionjakarta.websocket.EncodeException
 - 
sendPing
- Specified by:
 sendPingin interfacejakarta.websocket.RemoteEndpoint- Throws:
 IOExceptionIllegalArgumentException
 - 
sendPong
- Specified by:
 sendPongin interfacejakarta.websocket.RemoteEndpoint- Throws:
 IOExceptionIllegalArgumentException
 - 
assertMessageNotNull
 - 
assertSendHandlerNotNull
protected void assertSendHandlerNotNull(jakarta.websocket.SendHandler handler)  
 -