クラスの使用
org.springframework.http.ProblemDetail
パッケージ
説明
クライアント / サーバー側 HTTP の基本的な抽象化が含まれています。
Spring の Web インフラストラクチャと他のフレームワークモジュール間の最小境界点を定義する一般的な汎用インターフェース。
Web 固有のデータバインディング機能を提供します。
非同期リクエスト処理のサポート。
ファイルのアップロードを処理するためのマルチパート解決フレームワーク。
マルチパート解決フレームワークのサポートクラス。
アノテーションベースのハンドラーメソッド処理のインフラストラクチャ。
Spring の一般的なリアクティブ 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()
レスポンスの本文を返します。これは、status
がレスポンスステータスと一致する RFC 9457ProblemDetail
としてフォーマットされます。final ProblemDetail
ErrorResponseException.getBody()
レスポンスのボディを返します。HttpMediaTypeException.getBody()
HttpRequestMethodNotSupportedException.getBody()
default ProblemDetail
ErrorResponse.updateAndGetBody
(MessageSource messageSource, LocaleSE locale) 指定されたMessageSource
を使用してtype
、title
、detail
メッセージコードを解決し、解決された値を使用してErrorResponse.getBody()
の対応するフィールドを更新します。修飾子と型メソッド説明static ErrorResponse.Builder
ErrorResponse.builder
(ThrowableSE ex, ProblemDetail problemDetail) カスタムProblemDetail
インスタンスで使用するErrorResponse.builder(Throwable, HttpStatusCode, String)
のバリアント。修飾子コンストラクター説明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 内の ProblemDetail 使用
org.springframework.web.multipart.support 内の ProblemDetail 使用
修飾子と型メソッド説明MissingServletRequestPartException.getBody()
レスポンスの本文を返します。これは、status
がレスポンスステータスと一致する RFC 9457ProblemDetail
としてフォーマットされます。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.server 内の ProblemDetail 使用
修飾子と型メソッド説明ResponseStatusException.updateAndGetBody
(MessageSource messageSource, LocaleSE locale) 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) org.springframework.web.servlet.resource 内の ProblemDetail 使用