类 HttpStatusHandler
java.lang.Object
org.springframework.boot.devtools.remote.server.HttpStatusHandler
- 所有已实现的接口:
Handler
Handler
that responds with a specific HttpStatus
.- 从以下版本开始:
- 1.3.0
- 作者:
- Phillip Webb
-
构造器概要
构造器构造器说明Create 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. -
方法概要
修饰符和类型方法说明void
handle
(ServerHttpRequest request, ServerHttpResponse response) Handle the request.
-
构造器详细资料
-
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.- 参数:
status
- the status
-
-
方法详细资料
-
handle
从接口复制的说明:Handler
Handle the request.- 指定者:
handle
在接口中Handler
- 参数:
request
- the requestresponse
- the response- 抛出:
IOException
- in case of I/O errors
-