public class SimpleHttpCodeStatusMapper extends ObjectSE implements HttpCodeStatusMapper
status code
の HTTP ステータスコードへのマップに基づいた単純な HttpCodeStatusMapper
。DEFAULT
コンストラクターと説明 |
---|
SimpleHttpCodeStatusMapper() デフォルトのマッピングを使用して、新しい SimpleHttpCodeStatusMapper インスタンスを作成します。 |
SimpleHttpCodeStatusMapper(MapSE<StringSE, IntegerSE> mappings) 指定されたマッピングで新しい SimpleHttpCodeStatusMapper を作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
int | getStatusCode(Status status) 指定された health status に対応する HTTP ステータスコードを返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public SimpleHttpCodeStatusMapper()
SimpleHttpCodeStatusMapper
インスタンスを作成します。public SimpleHttpCodeStatusMapper(MapSE<StringSE,IntegerSE> mappings)
SimpleHttpCodeStatusMapper
を作成します。mappings
- 使用するマッピングまたはデフォルトのマッピングを使用する null
public int getStatusCode(Status status)
HttpCodeStatusMapper
health status
に対応する HTTP ステータスコードを返します。HttpCodeStatusMapper
の getStatusCode
status
- マップするヘルスステータス