Class DefaultHandshakeHandler

java.lang.Object
org.springframework.web.socket.server.support.AbstractHandshakeHandler
org.springframework.web.socket.server.support.DefaultHandshakeHandler
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.Lifecycle, org.springframework.web.context.ServletContextAware, HandshakeHandler

public class DefaultHandshakeHandler extends AbstractHandshakeHandler implements org.springframework.web.context.ServletContextAware
A default HandshakeHandler implementation, extending AbstractHandshakeHandler with Servlet-specific initialization support. As of 7.0, this class prefers JettyRequestUpgradeStrategy when Jetty WebSocket is available on the classpath, using StandardWebSocketUpgradeStrategy otherwise.
Since:
4.0
Author:
Rossen Stoyanchev, Juergen Hoeller
  • Constructor Details

    • DefaultHandshakeHandler

      public DefaultHandshakeHandler()
    • DefaultHandshakeHandler

      public DefaultHandshakeHandler(RequestUpgradeStrategy requestUpgradeStrategy)
  • Method Details

    • setServletContext

      public void setServletContext(jakarta.servlet.ServletContext servletContext)
      Specified by:
      setServletContext in interface org.springframework.web.context.ServletContextAware