Class HttpStatusHandler

    • Constructor Detail

      • HttpStatusHandler

        public HttpStatusHandler​(org.springframework.http.HttpStatus status)
        Create a new HttpStatusHandler instance that will respond with the specified status.
        Parameters:
        status - the status
    • Method Detail

      • handle

        public void handle​(org.springframework.http.server.ServerHttpRequest request,
                           org.springframework.http.server.ServerHttpResponse response)
                    throws IOException
        Description copied from interface: Handler
        Handle the request.
        Specified by:
        handle in interface Handler
        Parameters:
        request - the request
        response - the response
        Throws:
        IOException - in case of I/O errors