クラス WebEndpointResponse<T>

java.lang.ObjectSE
org.springframework.boot.actuate.endpoint.web.WebEndpointResponse<T>
型パラメーター:
T - レスポンス本体の型

public final class WebEndpointResponse<T> extends ObjectSE
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 を作成します。
    ボディがなく、指定された 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 を作成します。
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    @Nullable T
    レスポンスの本文を返します。
    @Nullable MimeType
    レスポンスのコンテンツ型を返します。
    int
    レスポンスのステータスを返します。

    クラス java.lang.ObjectSE から継承されたメソッド

    clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
  • フィールドの詳細

  • コンストラクターの詳細

    • WebEndpointResponse

      public WebEndpointResponse()
      本体がなく、ステータスが 200(OK)の新しい WebEndpointResponse を作成します。
    • WebEndpointResponse

      public WebEndpointResponse(int status)
      ボディがなく、指定された status を持つ新しい WebEndpointResponse を作成します。
      パラメーター:
      status - HTTP ステータス
    • WebEndpointResponse

      public WebEndpointResponse(@Nullable T body)
      指定された本文と 200 (OK) ステータスで新しい WebEndpointResponse を作成します。
      パラメーター:
      body - 体
    • WebEndpointResponse

      public WebEndpointResponse(@Nullable T body, Producible<?> producible)
      指定された本文とコンテンツ型、および 200 (OK) ステータスで新しい WebEndpointResponse を作成します。
      パラメーター:
      body - 体
      producible - コンテンツ型を提供する生産物
      導入:
      2.5.0
    • WebEndpointResponse

      public WebEndpointResponse(@Nullable T body, MimeType contentType)
      指定された本文とコンテンツ型、および 200 (OK) ステータスで新しい WebEndpointResponse を作成します。
      パラメーター:
      body - 体
      contentType - レスポンスのコンテンツ型
      導入:
      2.5.0
    • WebEndpointResponse

      public WebEndpointResponse(@Nullable T body, int status)
      指定されたボディとステータスで新しい WebEndpointResponse を作成します。
      パラメーター:
      body - 体
      status - HTTP ステータス
    • WebEndpointResponse

      public WebEndpointResponse(@Nullable T body, int status, @Nullable MimeType contentType)
      指定されたボディとステータスで新しい WebEndpointResponse を作成します。
      パラメーター:
      body - 体
      status - HTTP ステータス
      contentType - レスポンスのコンテンツ型
      導入:
      2.5.0
  • メソッドの詳細

    • getContentType

      public @Nullable MimeType getContentType()
      レスポンスのコンテンツ型を返します。
      戻り値:
      コンテンツ型。
    • getBody

      public @Nullable T getBody()
      レスポンスの本文を返します。
      戻り値:
    • getStatus

      public int getStatus()
      レスポンスのステータスを返します。
      戻り値:
      ステータス