接口 HttpCodeStatusMapper

所有已知实现类:
SimpleHttpCodeStatusMapper
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@FunctionalInterface public interface HttpCodeStatusMapper
Strategy used to map a health status to an HTTP status code.
从以下版本开始:
2.2.0
作者:
Stephane Nicoll, Phillip Webb
  • 字段详细资料

  • 方法详细资料

    • getStatusCode

      int getStatusCode(Status status)
      Return the HTTP status code that corresponds to the given health status.
      参数:
      status - the health status to map
      返回:
      the corresponding HTTP status code