Class WebSocketUpgradeFilter

java.lang.Object
org.eclipse.jetty.websocket.servlet.WebSocketUpgradeFilter
All Implemented Interfaces:
jakarta.servlet.Filter, Dumpable

@ManagedObject("WebSocket Upgrade Filter") public class WebSocketUpgradeFilter extends Object implements jakarta.servlet.Filter, Dumpable
Inline Servlet Filter to capture WebSocket upgrade requests.

The configuration applied to this filter via init params will be used as the the default configuration of any websocket upgraded by this filter, prior to the configuration of the websocket applied by the WebSocketMappings.

Configuration / Init-Parameters:

idleTimeout
set the time in ms that a websocket may be idle before closing
maxTextMessageSize
set the size in UTF-8 bytes that a websocket may be accept as a Text Message before closing
maxBinaryMessageSize
set the size in bytes that a websocket may be accept as a Binary Message before closing
inputBufferSize
set the size in bytes of the buffer used to read raw bytes from the network layer
outputBufferSize
set the size in bytes of the buffer used to write bytes to the network layer
maxFrameSize
The maximum frame size sent or received.
autoFragment
If true, frames are automatically fragmented to respect the maximum frame size.