Class FragmentingFlusher

java.lang.Object
org.eclipse.jetty.websocket.core.util.WebSocketFlusher
org.eclipse.jetty.websocket.core.util.FragmentingFlusher
All Implemented Interfaces:
OutgoingFrames

public abstract class FragmentingFlusher extends WebSocketFlusher
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 Details

    • FragmentingFlusher

      public FragmentingFlusher(Configuration configuration)
  • Method Details

    • forwardFrame

      protected abstract void forwardFrame(OutgoingEntry entry)
    • onFrame

      protected boolean onFrame(OutgoingEntry entry, boolean first)
      Description copied from class: WebSocketFlusher
      Called when a frame is ready to be transformed.
      Specified by:
      onFrame in class WebSocketFlusher
      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.