Class NativeWebSocketConfiguration

    • Constructor Detail

      • NativeWebSocketConfiguration

        public NativeWebSocketConfiguration​(ServletContext context)
        Deprecated.
      • NativeWebSocketConfiguration

        public NativeWebSocketConfiguration​(WebSocketServerFactory webSocketServerFactory)
        Deprecated.
    • Method Detail

      • getFactory

        public WebSocketServerFactory getFactory()
        Deprecated.
        Get WebSocketServerFactory being used.
        Returns:
        the WebSocketServerFactory being used.
      • getPolicy

        public WebSocketPolicy getPolicy()
        Deprecated.
        Used to configure the Default WebSocketPolicy used by all endpoints that don't redeclare the values.
        Returns:
        the default policy for all WebSockets
      • addMapping

        public void addMapping​(PathSpec pathSpec,
                               WebSocketCreator creator)
        Deprecated.
        Manually add a WebSocket mapping.

        If mapping is added before this configuration is started, then it is persisted through stop/start of this configuration's lifecycle. Otherwise it will be removed when this configuration is stopped.

        Specified by:
        addMapping in interface MappedWebSocketCreator
        Parameters:
        pathSpec - the pathspec to respond on
        creator - the websocket creator to activate on the provided mapping.
      • addMapping

        public void addMapping​(PathSpec pathSpec,
                               Class<?> endpointClass)
        Deprecated.
        Manually add a WebSocket mapping.
        Parameters:
        pathSpec - the pathspec to respond on
        endpointClass - the endpoint class to use for new upgrade requests on the provided pathspec (can be an WebSocket annotated POJO, or implementing WebSocketListener)
      • addMapping

        public void addMapping​(String rawspec,
                               WebSocketCreator creator)
        Deprecated.
        Description copied from interface: MappedWebSocketCreator
        Add a mapping, of a pathspec to a WebSocketCreator.

        Recognized Path Spec syntaxes

        /path/to or / or *.ext or servlet|{spec}
        Servlet Syntax
        ^{spec} or regex|{spec}
        Regex Syntax
        uri-template|{spec}
        URI Template (see JSR356 and RFC6570 level 1)
        Specified by:
        addMapping in interface MappedWebSocketCreator
        Parameters:
        rawspec - the path spec to use.
        creator - the websocket creator for this specific mapping