类 SimpleHttpCodeStatusMapper
java.lang.Object
org.springframework.boot.actuate.health.SimpleHttpCodeStatusMapper
- 所有已实现的接口:
HttpCodeStatusMapper
Simple
HttpCodeStatusMapper
backed by map of status
code
to HTTP status code.- 从以下版本开始:
- 2.2.0
- 作者:
- Stephane Nicoll, Phillip Webb
-
字段概要
从接口继承的字段 org.springframework.boot.actuate.health.HttpCodeStatusMapper
DEFAULT
-
构造器概要
构造器构造器说明Create a newSimpleHttpCodeStatusMapper
instance using default mappings.SimpleHttpCodeStatusMapper
(Map<String, Integer> mappings) Create a newSimpleHttpCodeStatusMapper
with the specified mappings. -
方法概要
修饰符和类型方法说明int
getStatusCode
(Status status) Return the HTTP status code that corresponds to the givenhealth status
.
-
构造器详细资料
-
SimpleHttpCodeStatusMapper
public SimpleHttpCodeStatusMapper()Create a newSimpleHttpCodeStatusMapper
instance using default mappings. -
SimpleHttpCodeStatusMapper
Create a newSimpleHttpCodeStatusMapper
with the specified mappings.- 参数:
mappings
- the mappings to use ornull
to use the default mappings
-
-
方法详细资料
-
getStatusCode
从接口复制的说明:HttpCodeStatusMapper
Return the HTTP status code that corresponds to the givenhealth status
.- 指定者:
getStatusCode
在接口中HttpCodeStatusMapper
- 参数:
status
- the health status to map- 返回:
- the corresponding HTTP status code
-