Class WebSocketRoute

    • Constructor Detail

      • WebSocketRoute

        public WebSocketRoute()
    • Method Detail

      • to

        public WebSocketRoute to​(String url)
        Sets the URL for this route
        Parameters:
        url - The URL for this WebSocket route
        Returns:
        WebSocketRoute instance
      • onController

        public WebSocketRoute onController​(Class<?> clazz)
        Sets the controller class for this WebSocket route
        Parameters:
        clazz - The controller class
        Returns:
        WebSocketRoute instance
      • withAuthentication

        public void withAuthentication()
        Sets authentication to true, default is false
      • getUrl

        public String getUrl()
        Specified by:
        getUrl in interface MangooRoute
        Returns:
        The configured URL for this route
      • hasAuthentication

        public boolean hasAuthentication()
      • getControllerClass

        public Class<?> getControllerClass()