Class ClientUpgradeResponse

    • Constructor Detail

      • ClientUpgradeResponse

        public ClientUpgradeResponse()
      • ClientUpgradeResponse

        public ClientUpgradeResponse​(HttpResponse response)
    • Method Detail

      • sendForbidden

        public void sendForbidden​(java.lang.String message)
                           throws java.io.IOException
        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