Class Jsr356WebSockets

  • All Implemented Interfaces:
    ninja.websockets.WebSockets

    @Singleton
    public class Jsr356WebSockets
    extends Object
    implements ninja.websockets.WebSockets
    JSR-356 implementation of Ninja WebSockets. Will use "programmatic deployment" of WebSocket endpoints when Ninja routes are compiled at boot.
    Author:
    jjlauer
    • Constructor Detail

      • Jsr356WebSockets

        @Inject
        public Jsr356WebSockets​(javax.websocket.server.ServerContainer serverContainer)
    • Method Detail

      • getServerContainer

        public javax.websocket.server.ServerContainer getServerContainer()
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface ninja.websockets.WebSockets
      • compileRoute

        public void compileRoute​(ninja.Route route)
        Specified by:
        compileRoute in interface ninja.websockets.WebSockets