Package com.iizix.nio

Interface WebSocketAcceptor

    • Method Detail

      • isRequestURIAccepted

        java.lang.Object isRequestURIAccepted​(IWebSocketComm comm,
                                              java.lang.String uri,
                                              java.util.Map<java.lang.String,​java.util.List<java.lang.String>> headerFields)
        Called to check if a request URI can be accepted.
        Parameters:
        comm - The WebSocket communication instance. For certain WebSocket implementations, this instance is null (e.g. for Grizzly in GlassFish).
        uri - The request URI, formatted as e.g. "/something/more.ws".
        headerFields - HTTP header fields, null if called for a quick-check of acceptance.
        Returns:
        Object an object that is attached to the TransactionComm instance, or null if the URI is not accepted.