类 HttpStatusHandler
- java.lang.Object
- org.springframework.boot.devtools.remote.server.HttpStatusHandler
- 所有已实现的接口:
Handler
public class HttpStatusHandler extends Object implements Handler
Handlerthat responds with a specificHttpStatus.
构造器概要
构造器 构造器 说明 HttpStatusHandler()Create a newHttpStatusHandlerinstance that will respond with a HTTP OK 200 status.HttpStatusHandler(org.springframework.http.HttpStatus status)Create a newHttpStatusHandlerinstance that will respond with the specified status.
构造器详细资料
HttpStatusHandler
public HttpStatusHandler()
Create a newHttpStatusHandlerinstance that will respond with a HTTP OK 200 status.
HttpStatusHandler
public HttpStatusHandler(org.springframework.http.HttpStatus status)
Create a newHttpStatusHandlerinstance 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
从接口复制的说明:HandlerHandle the request.- 指定者:
handle在接口中Handler- 参数:
request- the requestresponse- the response- 抛出:
IOException- in case of I/O errors