Class HttpStatusHandler
java.lang.Object
org.springframework.boot.devtools.remote.server.HttpStatusHandler
- All Implemented Interfaces:
Handler
Handler
that responds with a specific HttpStatus
.- Since:
- 1.3.0
- Author:
- Phillip Webb
-
Constructor Summary
ConstructorDescriptionCreate a newHttpStatusHandler
instance that will respond with an HTTP OK 200 status.HttpStatusHandler
(HttpStatus status) Create a newHttpStatusHandler
instance that will respond with the specified status. -
Method Summary
Modifier and TypeMethodDescriptionvoid
handle
(ServerHttpRequest request, ServerHttpResponse response) Handle the request.
-
Constructor Details
-
HttpStatusHandler
public HttpStatusHandler()Create a newHttpStatusHandler
instance that will respond with an HTTP OK 200 status. -
HttpStatusHandler
Create a newHttpStatusHandler
instance that will respond with the specified status.- Parameters:
status
- the status
-
-
Method Details
-
handle
Description copied from interface:Handler
Handle the request.- Specified by:
handle
in interfaceHandler
- Parameters:
request
- the requestresponse
- the response- Throws:
IOException
- in case of I/O errors
-