类 HttpStatusHandler

    • 构造器详细资料

      • HttpStatusHandler

        public HttpStatusHandler​(org.springframework.http.HttpStatus status)
        Create a new HttpStatusHandler instance that will respond with the specified status.
        参数:
        status - the status
    • 方法详细资料

      • handle

        public void handle​(org.springframework.http.server.ServerHttpRequest request,
                           org.springframework.http.server.ServerHttpResponse response)
                    throws IOException
        从接口复制的说明: Handler
        Handle the request.
        指定者:
        handle 在接口中 Handler
        参数:
        request - the request
        response - the response
        抛出:
        IOException - in case of I/O errors