Interface NHttpServerConnection

    • Method Detail

      • submitResponse

        void submitResponse​(HttpResponse response)
                     throws java.io.IOException,
                            HttpException
        Submits {link @HttpResponse} to be sent to the client.
        Parameters:
        response - HTTP response
        Throws:
        java.io.IOException - if I/O error occurs while submitting the response
        HttpException - if the HTTP response violates the HTTP protocol.
      • isResponseSubmitted

        boolean isResponseSubmitted()
        Returns true if an HTTP response has been submitted to the client.
        Returns:
        true if an HTTP response has been submitted, false otherwise.
      • resetInput

        void resetInput()
        Resets output state. This method can be used to prematurely terminate processing of the incoming HTTP request.
      • resetOutput

        void resetOutput()
        Resets input state. This method can be used to prematurely terminate processing of the outgoing HTTP response.