Class WebSocketServer

All Implemented Interfaces:
Runnable, InitializingPhase, Named, ShutdownPhase, Endpoint, Server, ReferenceResolverAware

public class WebSocketServer extends HttpServer
Since:
2.3
Author:
Christoph Deppisch
  • Constructor Details

    • WebSocketServer

      public WebSocketServer()
      Default constructor overwrites context config location.
  • Method Details

    • getDispatcherServlet

      protected org.springframework.web.servlet.DispatcherServlet getDispatcherServlet()
      Overrides:
      getDispatcherServlet in class HttpServer
    • configure

      protected void configure(org.eclipse.jetty.ee10.servlet.ServletContextHandler contextHandler)
      Overrides:
      configure in class HttpServer
    • initialize

      public void initialize()
      Specified by:
      initialize in interface InitializingPhase
      Overrides:
      initialize in class HttpServer
    • getWebSockets

      public List<WebSocketEndpoint> getWebSockets()
      Gets the WebSocket endpoints (id, uri)
    • setWebSockets

      public void setWebSockets(List<WebSocketEndpoint> webSockets)
      Sets the WebSocket endpoints (id, uri)
      Parameters:
      webSockets -