Class FragmentingFlusher
java.lang.Object
org.eclipse.jetty.websocket.core.util.WebSocketFlusher
org.eclipse.jetty.websocket.core.util.FragmentingFlusher
- All Implemented Interfaces:
OutgoingFrames
Used to split large data frames into multiple frames below the maxFrameSize.
Control frames and dataFrames smaller than the maxFrameSize will be forwarded
directly to
forwardFrame(OutgoingEntry).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidforwardFrame(OutgoingEntry entry) protected booleanonFrame(OutgoingEntry entry, boolean first) Called when a frame is ready to be transformed.Methods inherited from class WebSocketFlusher
closeFlusher, failFlusher, onCompleteFailure, sendFrameMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface OutgoingFrames
sendFrame
-
Constructor Details
-
FragmentingFlusher
-
-
Method Details
-
forwardFrame
-
onFrame
Description copied from class:WebSocketFlusherCalled when a frame is ready to be transformed.- Specified by:
onFramein classWebSocketFlusher- Parameters:
entry- the entry containing the frame to be transformed.first- true if this is the first time this entry is being processed.- Returns:
- true to indicate that you have finished transforming this entry.
-