クラスの使用
org.springframework.http.ProblemDetail
パッケージ
説明
クライアント / サーバー側 HTTP の基本的な抽象化が含まれています。
Spring の Web インフラストラクチャと他のフレームワークモジュール間の最小境界点を定義する一般的な汎用インターフェース。
Web 固有のデータバインディング機能を提供します。
非同期リクエスト処理のサポート。
マルチパート解決フレームワークのサポートクラス。
アノテーションベースのハンドラーメソッド処理のインフラストラクチャ。
アプリケーションコンテキストインフラストラクチャと統合するサーブレット、および Spring Web MVC フレームワークのコアインターフェースとクラスを提供します。
org.springframework.web.method.annotation
パッケージに基づいた、アノテーションベースのハンドラーメソッド処理のための MVC インフラストラクチャ。org.springframework.http 内の ProblemDetail 使用
修飾子と型メソッド説明static ProblemDetail
ProblemDetail.forStatus
(int status) 指定されたステータス値でProblemDetail
インスタンスを作成します。static ProblemDetail
ProblemDetail.forStatus
(HttpStatusCode status) 指定されたステータスコードでProblemDetail
インスタンスを作成します。static ProblemDetail
ProblemDetail.forStatusAndDetail
(HttpStatusCode status, StringSE detail) 指定されたステータスと詳細でProblemDetail
インスタンスを作成します。修飾子コンストラクター説明protected
ProblemDetail
(ProblemDetail other) サブクラスが追加のプロパティでProblemDetail
を再作成および拡張するために使用できるコピーコンストラクター。org.springframework.web 内の ProblemDetail 使用
修飾子と型メソッド説明ErrorResponse.getBody()
レスポンスの本文を返します。RFC 7807ProblemDetail
としてフォーマットされ、status
はレスポンスステータスと一致する必要があります。final ProblemDetail
ErrorResponseException.getBody()
レスポンスのボディを返します。HttpMediaTypeException.getBody()
HttpRequestMethodNotSupportedException.getBody()
default ProblemDetail
ErrorResponse.updateAndGetBody
(MessageSource messageSource, LocaleSE locale) 指定されたMessageSource
を介してdetailMessageCode
およびtitleMessageCode
を解決し、見つかった場合は、それぞれ「詳細」フィールドと「タイトル」フィールドを更新します。修飾子コンストラクター説明ErrorResponseException
(HttpStatusCode status, ProblemDetail body, ThrowableSE cause) 拡張フィールドを持つProblemDetail
のサブクラスである可能性がある、特定のProblemDetail
インスタンスを持つコンストラクター。ErrorResponseException
(HttpStatusCode status, ProblemDetail body, ThrowableSE cause, StringSE messageDetailCode, ObjectSE[] messageDetailArguments) 指定されたProblemDetail
、および詳細メッセージを解決するためのMessageSource
コードと引数を持つコンストラクター。org.springframework.web.bind 内の ProblemDetail 使用
org.springframework.web.context.request.async 内の ProblemDetail 使用
org.springframework.web.multipart.support 内の ProblemDetail 使用
修飾子と型メソッド説明MissingServletRequestPartException.getBody()
レスポンスの本文を返します。RFC 7807ProblemDetail
としてフォーマットされ、status
はレスポンスステータスと一致する必要があります。org.springframework.web.reactive.result.method.annotation 内の ProblemDetail 使用
修飾子と型メソッド説明protected ProblemDetail
ResponseEntityExceptionHandler.createProblemDetail
(ExceptionSE ex, HttpStatusCode status, StringSE defaultDetail, StringSE detailMessageCode, ObjectSE[] detailMessageArguments, ServerWebExchange exchange) org.springframework.web.servlet 内の ProblemDetail 使用
org.springframework.web.servlet.mvc.method.annotation 内の ProblemDetail 使用
修飾子と型メソッド説明protected ProblemDetail
ResponseEntityExceptionHandler.createProblemDetail
(ExceptionSE ex, HttpStatusCode status, StringSE defaultDetail, StringSE detailMessageCode, ObjectSE[] detailMessageArguments, WebRequest request)