Class ServerContainerCustomizer

java.lang.Object
io.micronaut.servlet.websocket.ServerContainerCustomizer

@Internal public final class ServerContainerCustomizer extends Object
Applies the Micronaut defaults to a container's WebSocketContainer.

Jetty, Tomcat and Undertow ship different message size and idle timeout defaults, so these are always set explicitly to make behaviour the same on every runtime and equal to that of the Netty server.

Since:
6.2.0
Author:
graemerocher
  • Method Details

    • apply

      public static void apply(jakarta.websocket.WebSocketContainer container, ServletWebSocketConfiguration configuration, Duration idleTimeout)
      Applies the configured defaults.
      Parameters:
      container - The container
      configuration - The WebSocket configuration
      idleTimeout - The idle timeout to apply