クラス 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 int400 Bad Request.static final int500 Internal Server Error.static final int204 No Content.static final int404 Not Found.static final int200 OK.static final int503 Service Unavailable.static final int429 Too Many Requests.コンストラクターの概要
コンストラクターコンストラクター説明本体がなく、ステータスが 200(OK)の新しいWebEndpointResponseを作成します。WebEndpointResponse(int status) ボディがなく、指定されたstatusを持つ新しいWebEndpointResponseを作成します。WebEndpointResponse(@Nullable T body) 指定された本文と 200 (OK) ステータスで新しいWebEndpointResponseを作成します。WebEndpointResponse(@Nullable T body, int status) 指定されたボディとステータスで新しいWebEndpointResponseを作成します。WebEndpointResponse(@Nullable T body, int status, @Nullable MimeType contentType) 指定されたボディとステータスで新しいWebEndpointResponseを作成します。WebEndpointResponse(@Nullable T body, Producible<?> producible) 指定された本文とコンテンツ型、および 200 (OK) ステータスで新しいWebEndpointResponseを作成します。WebEndpointResponse(@Nullable 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
WebEndpointResponse
指定されたボディとステータスで新しいWebEndpointResponseを作成します。- パラメーター:
body- 体status- HTTP ステータス
WebEndpointResponse
メソッドの詳細
getContentType
getBody
getStatus
public int getStatus()レスポンスのステータスを返します。- 戻り値:
- ステータス