Interface IWebSocketConnectionFilter

  • All Known Implementing Classes:
    WebSocketConnectionFilterCollection, WebSocketConnectionOriginFilter
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface IWebSocketConnectionFilter
    Common interface for rejecting connections which are not meeting some of the security concerns. One example might be when the connection 'Origin' header does not match the origin of the application host
    Author:
    Gergely Nagy
    See Also:
    WebSocketConnectionFilterCollection
    • Method Detail

      • doFilter

        ConnectionRejected doFilter​(javax.servlet.http.HttpServletRequest servletRequest)
        Method for rejecting connections based on the current request
        Parameters:
        servletRequest - The servlet request holding the request headers