クラス WebEndpointResponse<T>
java.lang.ObjectSE
org.springframework.boot.actuate.endpoint.web.WebEndpointResponse<T>
- 型パラメーター:
T
- レスポンス本体の型
WebEndpointResponse
は、@EndpointWebExtension
の操作によって返され、HTTP ステータスコードなどの追加の Web 固有の情報を提供できます。- 導入:
- 2.0.0
- 作成者:
- Stephane Nicoll, Andy Wilkinson, Vedran Pavic
フィールドサマリー
修飾子と型フィールド説明static final int
400 Bad Request
.static final int
500 Internal Server Error
.static final int
204 No Content
.static final int
404 Not Found
.static final int
200 OK
.static final int
503 Service Unavailable
.static final int
429 Too Many Requests
.コンストラクターのサマリー
コンストラクター説明本体がなく、ステータスが 200(OK)の新しいWebEndpointResponse
を作成します。WebEndpointResponse
(int status) ボディがなく、指定されたstatus
を持つ新しいWebEndpointResponse
を作成します。WebEndpointResponse
(T body) 指定された本文と 200 (OK) ステータスで新しいWebEndpointResponse
を作成します。WebEndpointResponse
(T body, int status) 指定されたボディとステータスで新しいWebEndpointResponse
を作成します。WebEndpointResponse
(T body, int status, MimeType contentType) 指定されたボディとステータスで新しいWebEndpointResponse
を作成します。WebEndpointResponse
(T body, Producible<?> producible) 指定された本文とコンテンツ型、および 200 (OK) ステータスで新しいWebEndpointResponse
を作成します。WebEndpointResponse
(T body, MimeType contentType) 指定された本文とコンテンツ型、および 200 (OK) ステータスで新しいWebEndpointResponse
を作成します。方法の概要
フィールドの詳細
STATUS_OK
public static final int STATUS_OK200 OK
.- 関連事項:
STATUS_NO_CONTENT
public static final int STATUS_NO_CONTENT204 No Content
.- 関連事項:
STATUS_BAD_REQUEST
public static final int STATUS_BAD_REQUEST400 Bad Request
.- 関連事項:
STATUS_NOT_FOUND
public static final int STATUS_NOT_FOUND404 Not Found
.- 関連事項:
STATUS_TOO_MANY_REQUESTS
public static final int STATUS_TOO_MANY_REQUESTS429 Too Many Requests
.- 関連事項:
STATUS_INTERNAL_SERVER_ERROR
public static final int STATUS_INTERNAL_SERVER_ERROR500 Internal Server Error
.- 関連事項:
STATUS_SERVICE_UNAVAILABLE
public static final int STATUS_SERVICE_UNAVAILABLE503 Service Unavailable
.- 関連事項:
コンストラクターの詳細
WebEndpointResponse
public WebEndpointResponse()本体がなく、ステータスが 200(OK)の新しいWebEndpointResponse
を作成します。WebEndpointResponse
public WebEndpointResponse(int status) ボディがなく、指定されたstatus
を持つ新しいWebEndpointResponse
を作成します。- パラメーター:
status
- HTTP ステータス
WebEndpointResponse
指定された本文と 200 (OK) ステータスで新しいWebEndpointResponse
を作成します。- パラメーター:
body
- 体
WebEndpointResponse
指定された本文とコンテンツ型、および 200 (OK) ステータスで新しいWebEndpointResponse
を作成します。- パラメーター:
body
- 体producible
- コンテンツ型を提供する生産物- 導入:
- 2.5.0
WebEndpointResponse
指定された本文とコンテンツ型、および 200 (OK) ステータスで新しいWebEndpointResponse
を作成します。- パラメーター:
body
- 体contentType
- レスポンスのコンテンツ型- 導入:
- 2.5.0
WebEndpointResponse
指定されたボディとステータスで新しいWebEndpointResponse
を作成します。- パラメーター:
body
- 体status
- HTTP ステータス
WebEndpointResponse
指定されたボディとステータスで新しいWebEndpointResponse
を作成します。- パラメーター:
body
- 体status
- HTTP ステータスcontentType
- レスポンスのコンテンツ型- 導入:
- 2.5.0
メソッドの詳細
getContentType
レスポンスのコンテンツ型を返します。- 戻り値:
- コンテンツ型。
getBody
レスポンスの本文を返します。- 戻り値:
- 体
getStatus
public int getStatus()レスポンスのステータスを返します。- 戻り値:
- ステータス