接口 HttpCodeStatusMapper
- 所有已知实现类:
SimpleHttpCodeStatusMapper
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Strategy used to map a
health status
to an HTTP status code.- 从以下版本开始:
- 2.2.0
- 作者:
- Stephane Nicoll, Phillip Webb
-
字段概要
字段修饰符和类型字段说明static final HttpCodeStatusMapper
AnHttpCodeStatusMapper
instance using default mappings. -
方法概要
修饰符和类型方法说明int
getStatusCode
(Status status) Return the HTTP status code that corresponds to the givenhealth status
.
-
字段详细资料
-
DEFAULT
AnHttpCodeStatusMapper
instance using default mappings.- 从以下版本开始:
- 2.3.0
-
-
方法详细资料
-
getStatusCode
Return the HTTP status code that corresponds to the givenhealth status
.- 参数:
status
- the health status to map- 返回:
- the corresponding HTTP status code
-