Interface JettyWebSocketCreator


  • public interface JettyWebSocketCreator
    Abstract WebSocket creator interface.

    Should you desire filtering of the WebSocket object creation due to criteria such as origin or sub-protocol, then you will be required to implement a custom WebSocketCreator implementation.

    • Method Detail

      • createWebSocket

        java.lang.Object createWebSocket​(JettyServerUpgradeRequest req,
                                         JettyServerUpgradeResponse resp)
        Create a websocket from the incoming request.
        Parameters:
        req - the request details
        resp - the response details
        Returns:
        a websocket object to use, or null if no websocket should be created from this request.