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 SummaryConstructorsConstructorDescriptionCreate a newHttpStatusHandlerinstance that will respond with an HTTP OK 200 status.HttpStatusHandler(HttpStatus status) Create a newHttpStatusHandlerinstance that will respond with the specified status.
- 
Method SummaryModifier and TypeMethodDescriptionvoidhandle(ServerHttpRequest request, ServerHttpResponse response) Handle the request.
- 
Constructor Details- 
HttpStatusHandlerpublic HttpStatusHandler()Create a newHttpStatusHandlerinstance that will respond with an HTTP OK 200 status.
- 
HttpStatusHandlerCreate a newHttpStatusHandlerinstance that will respond with the specified status.- Parameters:
- status- the status
 
 
- 
- 
Method Details- 
handleDescription copied from interface:HandlerHandle the request.- Specified by:
- handlein interface- Handler
- Parameters:
- request- the request
- response- the response
- Throws:
- IOException- in case of I/O errors
 
 
-