Class HttpStatusHandler

java.lang.Object
org.springframework.boot.devtools.remote.server.HttpStatusHandler
All Implemented Interfaces:
Handler

public class HttpStatusHandler extends Object implements Handler
Handler that responds with a specific HttpStatus.
Since:
1.3.0
  • Constructor Details

    • HttpStatusHandler

      public HttpStatusHandler()
      Create a new HttpStatusHandler instance that will respond with an HTTP OK 200 status.
    • 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 Details

    • 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