类 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 newSimpleHttpCodeStatusMapperinstance using default mappings.SimpleHttpCodeStatusMapper(Map<String, Integer> mappings) Create a newSimpleHttpCodeStatusMapperwith the specified mappings. -
方法概要
修饰符和类型方法说明intgetStatusCode(Status status) Return the HTTP status code that corresponds to the givenhealth status.
-
构造器详细资料
-
SimpleHttpCodeStatusMapper
public SimpleHttpCodeStatusMapper()Create a newSimpleHttpCodeStatusMapperinstance using default mappings. -
SimpleHttpCodeStatusMapper
Create a newSimpleHttpCodeStatusMapperwith the specified mappings.- 参数:
mappings- the mappings to use ornullto use the default mappings
-
-
方法详细资料
-
getStatusCode
从接口复制的说明:HttpCodeStatusMapperReturn the HTTP status code that corresponds to the givenhealth status.- 指定者:
getStatusCode在接口中HttpCodeStatusMapper- 参数:
status- the health status to map- 返回:
- the corresponding HTTP status code
-