Class ClientUpgradeResponse

    • Constructor Detail

      • ClientUpgradeResponse

        public ClientUpgradeResponse()
        Deprecated.
      • ClientUpgradeResponse

        public ClientUpgradeResponse​(HttpResponse response)
        Deprecated.
    • Method Detail

      • isSuccess

        public boolean isSuccess()
        Deprecated.
        Description copied from interface: UpgradeResponse
        Test if upgrade response is successful.

        Merely notes if the response was sent as a WebSocket Upgrade, or was failed (resulting in no upgrade handshake)

        Specified by:
        isSuccess in interface UpgradeResponse
        Overrides:
        isSuccess in class UpgradeResponseAdapter
        Returns:
        true if upgrade response was generated, false if no upgrade response was generated
      • sendForbidden

        public void sendForbidden​(java.lang.String message)
                           throws java.io.IOException
        Deprecated.
        Description copied from class: UpgradeResponseAdapter
        Issue a forbidden upgrade response.

        This means that the websocket endpoint was valid, but the conditions to use a WebSocket resulted in a forbidden access.

        Use this when the origin or authentication is invalid.

        Specified by:
        sendForbidden in interface UpgradeResponse
        Overrides:
        sendForbidden in class UpgradeResponseAdapter
        Parameters:
        message - the short 1 line detail message about the forbidden response
        Throws:
        java.io.IOException - if unable to send the forbidden