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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectionRejected
doFilter(javax.servlet.http.HttpServletRequest servletRequest)
Method for rejecting connections based on the current request
-
-
-
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
-
-