インターフェースの使用
org.springframework.http.HttpStatusCode
HttpStatusCode を使用するパッケージ
パッケージ
説明
クライアント / サーバー側 HTTP の基本的な抽象化が含まれています。
クライアント側の HTTP 上の抽象化が含まれています。
サーバー側の HTTP 上の抽象化が含まれています。
クライアント側の HTTP 抽象化のモック実装。
リアクティブ HTTP クライアント契約のモック実装。
ビルトイン
ResponseCreator 実装が含まれています。WebTestClient を介した Spring WebFlux サーバーエンドポイントのテストのサポート。Spring の Web インフラストラクチャと他のフレームワークモジュール間の最小境界点を定義する一般的な汎用インターフェース。
Web 固有のデータバインディング機能を提供します。
クライアント側の Web サポートのコアパッケージ。
非同期リクエスト処理のサポート。
Bean スタイルの構成を可能にする汎用フィルター基本クラスを提供します。
Spring MVC の
org.springframework.web.servlet.mvc.method パッケージで使用される、ハンドラーメソッド処理の共通インフラストラクチャ。 ハンドラーメソッド処理の汎用サポートクラス。
マルチパート解決フレームワークのサポートクラス。
org.springframework.http.client.reactive リアクティブ HTTP アダプター層上に構築されるリアクティブ WebClient を提供します。org.springframework.web.reactive.function.client パッケージをサポートするクラス。Spring のリアクティブ環境用の関数 Web フレームワークを構成する型を提供します。
抽象基本クラスを含む HandlerMapping 実装を提供します。
アノテーションベースのハンドラーメソッド処理のインフラストラクチャ。
ビューの解決による結果処理のサポート。
Spring の一般的なリアクティブ Web サポートのコアインターフェースとクラス。
一般的な WebHandler 実装と
WebHandlerDecorator を提供します。 アプリケーションコンテキストインフラストラクチャと統合するサーブレット、および Spring Web MVC フレームワークのコアインターフェースとクラスを提供します。
Spring MVC のアノテーションベースのセットアップ。
Spring のサーブレット環境用の関数 Web フレームワークを構成する型を提供します。
Spring に付属するサーブレット MVC フレームワークの標準コントローラー実装。
org.springframework.web.method.annotation パッケージに基づいた、アノテーションベースのハンドラーメソッド処理のための MVC インフラストラクチャ。 カスタム実装の抽象基本クラスを含む、標準の View および ViewResolver 実装を提供します。
TransportHandler 実装クラスおよび具体的な SockJsServiceorg.springframework.http 内の HttpStatusCode 使用
HttpStatusCode を実装している org.springframework.http のクラスHttpStatusCode を返す org.springframework.http のメソッド修飾子と型メソッド説明ResponseEntity.getStatusCode()レスポンスの HTTP ステータスコードを返します。static HttpStatusCodeHttpStatusCode.valueOf(int code) 指定された整数値のHttpStatusCodeオブジェクトを返します。型 HttpStatusCode のパラメーターを持つ org.springframework.http のメソッド修飾子と型メソッド説明static ProblemDetailProblemDetail.forStatus(HttpStatusCode status) 指定されたステータスコードでProblemDetailインスタンスを作成します。static ProblemDetailProblemDetail.forStatusAndDetail(HttpStatusCode status, StringSE detail) 指定されたステータスと詳細でProblemDetailインスタンスを作成します。default booleanHttpStatusCode.isSameCodeAs(HttpStatusCode other) このHttpStatusCodeが他のステータスコードと同じ整数valueを共有するかどうか。static ResponseEntity.BodyBuilderResponseEntity.status(HttpStatusCode status) 指定されたステータスでビルダーを作成します。型 HttpStatusCode のパラメーターを持つ org.springframework.http のコンストラクター修飾子コンストラクター説明ResponseEntity(HttpStatusCode status) ステータスコードのみを使用してResponseEntityを作成します。ResponseEntity(MultiValueMap<StringSE, StringSE> headers, HttpStatusCode status) ヘッダーとステータスコードを使用してResponseEntityを作成します。ResponseEntity(T body, HttpStatusCode status) 本文とステータスコードを使用してResponseEntityを作成します。ResponseEntity(T body, MultiValueMap<StringSE, StringSE> headers, HttpStatusCode status) 本文、ヘッダー、ステータスコードを使用してResponseEntityを作成します。org.springframework.http.client 内の HttpStatusCode 使用
修飾子と型メソッド説明AbstractClientHttpResponse.getStatusCode()使用すべきではありません。ClientHttpResponse.getStatusCode()HTTP ステータスコードをHttpStatusCodeとして取得します。org.springframework.http.client.reactive 内の HttpStatusCode 使用
修飾子と型メソッド説明AbstractClientHttpResponse.getStatusCode()ClientHttpResponse.getStatusCode()HTTP ステータスコードをHttpStatusCodeとして返します。ClientHttpResponseDecorator.getStatusCode()型 HttpStatusCode のパラメーターを持つ org.springframework.http.client.reactive のコンストラクター修飾子コンストラクター説明protectedAbstractClientHttpResponse(HttpStatusCode statusCode, HttpHeaders headers, MultiValueMap<StringSE, ResponseCookie> cookies, reactor.core.publisher.Flux<DataBuffer> body) org.springframework.http.server 内の HttpStatusCode 使用
型 HttpStatusCode のパラメーターを持つ org.springframework.http.server のメソッド修飾子と型メソッド説明voidDelegatingServerHttpResponse.setStatusCode(HttpStatusCode status) voidServerHttpResponse.setStatusCode(HttpStatusCode status) レスポンスの HTTP ステータスコードを設定します。voidServletServerHttpResponse.setStatusCode(HttpStatusCode status) org.springframework.http.server.reactive 内の HttpStatusCode 使用
修飾子と型メソッド説明AbstractServerHttpResponse.getStatusCode()ServerHttpResponse.getStatusCode()設定されたステータスコードを返すか、基になるサーバーからのレスポンスのステータスにフォールバックします。ServerHttpResponseDecorator.getStatusCode()型 HttpStatusCode のパラメーターを持つ org.springframework.http.server.reactive のメソッド修飾子と型メソッド説明booleanAbstractServerHttpResponse.setStatusCode(HttpStatusCode status) booleanServerHttpResponse.setStatusCode(HttpStatusCode status) レスポンスの HTTP ステータスコードを設定します。booleanServerHttpResponseDecorator.setStatusCode(HttpStatusCode status) org.springframework.mock.http.client 内の HttpStatusCode 使用
型 HttpStatusCode のパラメーターを持つ org.springframework.mock.http.client のコンストラクター修飾子コンストラクター説明MockClientHttpResponse(byte[] body, HttpStatusCode statusCode) レスポンス本文をバイト配列として指定し、HTTP ステータスコードを指定してMockClientHttpResponseを作成します。MockClientHttpResponse(InputStreamSE body, HttpStatusCode statusCode) レスポンス本文をInputStreamSE とし、提供された HTTP ステータスコードを使用してMockClientHttpResponseを作成します。org.springframework.mock.http.client.reactive 内の HttpStatusCode 使用
型 HttpStatusCode のパラメーターを持つ org.springframework.mock.http.client.reactive のコンストラクターorg.springframework.test.web.client.response 内の HttpStatusCode 使用
型 HttpStatusCode のパラメーターを持つ org.springframework.test.web.client.response のメソッド修飾子と型メソッド説明static DefaultResponseCreatorMockRestResponseCreators.withStatus(HttpStatusCode status) 特定の HTTP ステータスを持つResponseCreator。型 HttpStatusCode のパラメーターを持つ org.springframework.test.web.client.response のコンストラクターorg.springframework.test.web.reactive.server 内の HttpStatusCode 使用
型 HttpStatusCode のパラメーターを持つ org.springframework.test.web.reactive.server のメソッド修飾子と型メソッド説明StatusAssertions.isEqualTo(HttpStatusCode status) レスポンスステータスをHttpStatusCodeとしてアサートします。org.springframework.web 内の HttpStatusCode 使用
HttpStatusCode を返す org.springframework.web のメソッド修飾子と型メソッド説明ErrorResponse.getStatusCode()レスポンスに使用する HTTP ステータスコードを返します。ErrorResponseException.getStatusCode()HttpMediaTypeNotAcceptableException.getStatusCode()HttpMediaTypeNotSupportedException.getStatusCode()HttpRequestMethodNotSupportedException.getStatusCode()型 HttpStatusCode のパラメーターを持つ org.springframework.web のメソッド修飾子と型メソッド説明static ErrorResponse.BuilderErrorResponse.builder(ThrowableSE ex, HttpStatusCode statusCode, StringSE detail) ErrorResponseインスタンスを作成するビルダーを返します。static ErrorResponseErrorResponse.create(ThrowableSE ex, HttpStatusCode statusCode, StringSE detail) ErrorResponse.builder(Throwable, HttpStatusCode, String)を介してインスタンスを構築する静的ファクトリメソッド。型 HttpStatusCode のパラメーターを持つ org.springframework.web のコンストラクター修飾子コンストラクター説明ErrorResponseException(HttpStatusCode status) HttpStatusCodeを持つコンストラクター。ErrorResponseException(HttpStatusCode status, ThrowableSE cause) HttpStatusCodeとオプションの原因を持つコンストラクター。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 内の HttpStatusCode 使用
HttpStatusCode を返す org.springframework.web.bind のメソッド修飾子と型メソッド説明MethodArgumentNotValidException.getStatusCode()MissingPathVariableException.getStatusCode()ServletRequestBindingException.getStatusCode()org.springframework.web.client 内の HttpStatusCode 使用
HttpStatusCode を返す org.springframework.web.client のメソッド修飾子と型メソッド説明RestClientResponseException.getStatusCode()HTTP ステータスコードを返します。UnknownContentTypeException.getStatusCode()HTTP ステータスコード値を返します。型 HttpStatusCode のパラメーターを持つ org.springframework.web.client のメソッド修飾子と型メソッド説明static HttpClientErrorExceptionHttpClientErrorException.create(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) オプションの準備済みメッセージを含むHttpClientErrorException.create(HttpStatusCode, String, HttpHeaders, byte[], Charset)のバリアント。static HttpClientErrorExceptionHttpClientErrorException.create(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) HttpClientErrorExceptionまたは HTTP ステータス固有のサブクラスを作成します。static HttpServerErrorExceptionHttpServerErrorException.create(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) オプションの準備済みメッセージを含むHttpServerErrorException.create(String, HttpStatusCode, String, HttpHeaders, byte[], Charset)のバリアント。static HttpServerErrorExceptionHttpServerErrorException.create(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) HttpServerErrorExceptionまたは HTTP ステータス固有のサブクラスを作成します。protected voidDefaultResponseErrorHandler.handleError(ClientHttpResponse response, HttpStatusCode statusCode) 解決されたステータスコードに基づいてエラーを処理します。voidExtractingResponseErrorHandler.handleError(ClientHttpResponse response, HttpStatusCode statusCode) protected booleanDefaultResponseErrorHandler.hasError(HttpStatusCode statusCode) DefaultResponseErrorHandler.hasError(ClientHttpResponse)から呼び出されるテンプレートメソッド。protected booleanExtractingResponseErrorHandler.hasError(HttpStatusCode statusCode) 型 HttpStatusCode の型引数を持つ org.springframework.web.client のメソッドパラメーター修飾子と型メソッド説明voidExtractingResponseErrorHandler.setStatusMapping(MapSE<HttpStatusCode, ClassSE<? extends RestClientException>> statusMapping) HTTP ステータスコードからRestClientExceptionサブクラスへのマッピングを設定します。型 HttpStatusCode のパラメーターを持つ org.springframework.web.client のコンストラクター修飾子コンストラクター説明HttpClientErrorException(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE responseCharset) ステータスコードとステータステキスト、ヘッダー、コンテンツ、準備されたメッセージを含むコンストラクター。HttpClientErrorException(HttpStatusCode statusCode) ステータスコードのみのコンストラクター。HttpClientErrorException(HttpStatusCode statusCode, StringSE statusText) ステータスコードとステータステキストを持つコンストラクター。HttpClientErrorException(HttpStatusCode statusCode, StringSE statusText, byte[] body, CharsetSE responseCharset) ステータスコードとステータステキスト、およびコンテンツを持つコンストラクター。HttpClientErrorException(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE responseCharset) ステータスコードとステータステキスト、ヘッダー、コンテンツを持つコンストラクター。HttpServerErrorException(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) ステータスコードとステータステキスト、ヘッダー、コンテンツ、準備されたメッセージを含むコンストラクター。HttpServerErrorException(HttpStatusCode statusCode) ステータスコードのみのコンストラクター。HttpServerErrorException(HttpStatusCode statusCode, StringSE statusText) ステータスコードとステータステキストを持つコンストラクター。HttpServerErrorException(HttpStatusCode statusCode, StringSE statusText, byte[] body, CharsetSE charset) ステータスコードとステータステキスト、およびコンテンツを持つコンストラクター。HttpServerErrorException(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) ステータスコードとステータステキスト、ヘッダー、コンテンツを持つコンストラクター。protectedHttpStatusCodeException(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders responseHeaders, byte[] responseBody, CharsetSE responseCharset) HttpStatusCode、ステータステキスト、コンテンツ、レスポンス文字セットを使用してインスタンスを作成します。protectedHttpStatusCodeException(HttpStatusCode statusCode) HttpStatusCodeを使用して新しいインスタンスを構築します。protectedHttpStatusCodeException(HttpStatusCode statusCode, StringSE statusText) HttpStatusCodeとステータステキストで新しいインスタンスを構築します。protectedHttpStatusCodeException(HttpStatusCode statusCode, StringSE statusText, byte[] responseBody, CharsetSE responseCharset) HttpStatusCode、ステータステキスト、コンテンツでインスタンスを作成します。protectedHttpStatusCodeException(HttpStatusCode statusCode, StringSE statusText, HttpHeaders responseHeaders, byte[] responseBody, CharsetSE responseCharset) HttpStatusCode、ステータステキスト、コンテンツ、レスポンス文字セットを使用してインスタンスを作成します。RestClientResponseException(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] responseBody, CharsetSE responseCharset) 指定されたレスポンスデータでの新しいインスタンスを構築します。UnknownContentTypeException(TypeSE targetType, MediaType contentType, HttpStatusCode statusCode, StringSE statusText, HttpHeaders responseHeaders, byte[] responseBody) 指定されたレスポンスデータでの新しいインスタンスを構築します。org.springframework.web.context.request.async 内の HttpStatusCode 使用
org.springframework.web.filter 内の HttpStatusCode 使用
HttpStatusCode を返す org.springframework.web.filter のメソッド型 HttpStatusCode のパラメーターを持つ org.springframework.web.filter のメソッド修飾子と型メソッド説明voidRelativeRedirectFilter.setRedirectStatus(HttpStatusCode status) リダイレクトに使用するデフォルトの HTTP ステータスを設定します。org.springframework.web.method 内の HttpStatusCode 使用
HttpStatusCode を返す org.springframework.web.method のメソッドorg.springframework.web.method.support 内の HttpStatusCode 使用
型 HttpStatusCode のパラメーターを持つ org.springframework.web.method.support のメソッド修飾子と型メソッド説明voidModelAndViewContainer.setStatus(HttpStatusCode status) ビューのレンダリングに使用されるModelAndViewで渡される HTTP ステータスを提供します。org.springframework.web.multipart.support 内の HttpStatusCode 使用
org.springframework.web.reactive.function.client 内の HttpStatusCode 使用
修飾子と型メソッド説明WebClientResponseException.getStatusCode()HTTP ステータスコード値を返します。ClientResponse.statusCode()HTTP ステータスコードをHttpStatusCode値として返します。型 HttpStatusCode のパラメーターを持つ org.springframework.web.reactive.function.client のメソッド修飾子と型メソッド説明static ClientResponse.BuilderClientResponse.create(HttpStatusCode statusCode) 指定されたステータスコードで、本文を読み取るためのデフォルトの戦略を使用して、レスポンスビルダーを作成します。static ClientResponse.BuilderClientResponse.create(HttpStatusCode statusCode, ListSE<HttpMessageReader<?>> messageReaders) 指定されたステータスコードとメッセージ本文リーダーを使用して、レスポンスビルダーを作成します。static ClientResponse.BuilderClientResponse.create(HttpStatusCode statusCode, ExchangeStrategies strategies) 指定されたステータスコードと本文を読み取るための戦略を使用して、レスポンスビルダーを作成します。static WebClientResponseExceptionWebClientResponseException.create(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset, HttpRequest request) WebClientResponseExceptionまたは HTTP ステータス固有のサブクラスを作成します。ClientResponse.Builder.statusCode(HttpStatusCode statusCode) レスポンスのステータスコードを設定します。型 HttpStatusCode の型引数を持つ org.springframework.web.reactive.function.client のメソッドパラメーター修飾子と型メソッド説明WebClient.Builder.defaultStatusHandler(PredicateSE<HttpStatusCode> statusPredicate, FunctionSE<ClientResponse, reactor.core.publisher.Mono<? extends ThrowableSE>> exceptionFunction) すべてのレスポンスに適用するデフォルトのstatus handlerを登録します。WebClient.ResponseSpec.onStatus(PredicateSE<HttpStatusCode> statusPredicate, FunctionSE<ClientResponse, reactor.core.publisher.Mono<? extends ThrowableSE>> exceptionFunction) 特定のエラーステータスコードをエラーシグナルにマップして、レスポンスではなく下流に伝搬する関数を提供します。static ExchangeFilterFunctionExchangeFilterFunctions.statusError(PredicateSE<HttpStatusCode> statusPredicate, FunctionSE<ClientResponse, ? extends ThrowableSE> exceptionFunction) 指定されたHttpStatusCode述語が一致したときにエラーシグナルを生成するフィルターを返します。型 HttpStatusCode のパラメーターを持つ org.springframework.web.reactive.function.client のコンストラクター修飾子コンストラクター説明UnknownHttpStatusCodeException(HttpStatusCode statusCode, HttpHeaders headers, byte[] responseBody, CharsetSE responseCharset, HttpRequest request) 指定されたパラメーターでUnknownHttpStatusCodeExceptionの新しいインスタンスを作成します。WebClientResponseException(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] responseBody, CharsetSE charset, HttpRequest request) 準備されたメッセージを持つコンストラクター。WebClientResponseException(HttpStatusCode statusCode, StringSE reasonPhrase, HttpHeaders headers, byte[] body, CharsetSE charset, HttpRequest request) レスポンスデータのみを含むコンストラクター、およびデフォルトメッセージ。org.springframework.web.reactive.function.client.support 内の HttpStatusCode 使用
org.springframework.web.reactive.function.server 内の HttpStatusCode 使用
型 HttpStatusCode のパラメーターを持つ org.springframework.web.reactive.function.server のメソッド修飾子と型メソッド説明EntityResponse.Builder.status(HttpStatusCode status) HTTP ステータスを設定します。RenderingResponse.Builder.status(HttpStatusCode status) HTTP ステータスを設定します。static ServerResponse.BodyBuilderServerResponse.status(HttpStatusCode status) 指定された HTTP ステータスでビルダーを作成します。org.springframework.web.reactive.handler 内の HttpStatusCode 使用
修飾子と型メソッド説明protected HttpStatusCodeWebFluxResponseStatusExceptionHandler.determineStatus(ThrowableSE ex) org.springframework.web.reactive.result.method.annotation 内の HttpStatusCode 使用
型 HttpStatusCode のパラメーターを持つ org.springframework.web.reactive.result.method.annotation のメソッド修飾子と型メソッド説明protected ProblemDetailResponseEntityExceptionHandler.createProblemDetail(ExceptionSE ex, HttpStatusCode status, StringSE defaultDetail, StringSE detailMessageCode, ObjectSE[] detailMessageArguments, ServerWebExchange exchange) protected reactor.core.publisher.Mono<ResponseEntity<ObjectSE>>ResponseEntityExceptionHandler.createResponseEntity(ObjectSE body, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) 指定された本文、ヘッダー、statusCode から使用するResponseEntityを作成します。protected reactor.core.publisher.Mono<ResponseEntity<ObjectSE>>ResponseEntityExceptionHandler.handleErrorResponseException(ErrorResponseException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) ErrorResponseExceptionの処理をカスタマイズします。protected reactor.core.publisher.Mono<ResponseEntity<ObjectSE>>ResponseEntityExceptionHandler.handleExceptionInternal(ExceptionSE ex, ObjectSE body, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) 共通の処理とResponseEntityの作成のために、このクラスの他のすべてが委譲する内部ハンドラーメソッド。protected reactor.core.publisher.Mono<ResponseEntity<ObjectSE>>ResponseEntityExceptionHandler.handleMethodNotAllowedException(MethodNotAllowedException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) MethodNotAllowedExceptionの処理をカスタマイズします。protected reactor.core.publisher.Mono<ResponseEntity<ObjectSE>>ResponseEntityExceptionHandler.handleMissingRequestValueException(MissingRequestValueException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) MissingRequestValueExceptionの処理をカスタマイズします。protected reactor.core.publisher.Mono<ResponseEntity<ObjectSE>>ResponseEntityExceptionHandler.handleNotAcceptableStatusException(NotAcceptableStatusException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) NotAcceptableStatusExceptionの処理をカスタマイズします。protected reactor.core.publisher.Mono<ResponseEntity<ObjectSE>>ResponseEntityExceptionHandler.handleResponseStatusException(ResponseStatusException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) ResponseStatusExceptionの処理をカスタマイズします。protected reactor.core.publisher.Mono<ResponseEntity<ObjectSE>>ResponseEntityExceptionHandler.handleServerErrorException(ServerErrorException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) ServerErrorExceptionの処理をカスタマイズします。protected reactor.core.publisher.Mono<ResponseEntity<ObjectSE>>ResponseEntityExceptionHandler.handleServerWebInputException(ServerWebInputException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) ServerWebInputExceptionの処理をカスタマイズします。protected reactor.core.publisher.Mono<ResponseEntity<ObjectSE>>ResponseEntityExceptionHandler.handleUnsatisfiedRequestParameterException(UnsatisfiedRequestParameterException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) UnsatisfiedRequestParameterExceptionの処理をカスタマイズします。protected reactor.core.publisher.Mono<ResponseEntity<ObjectSE>>ResponseEntityExceptionHandler.handleUnsupportedMediaTypeStatusException(UnsupportedMediaTypeStatusException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) UnsupportedMediaTypeStatusExceptionの処理をカスタマイズします。protected reactor.core.publisher.Mono<ResponseEntity<ObjectSE>>ResponseEntityExceptionHandler.handleWebExchangeBindException(WebExchangeBindException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) WebExchangeBindExceptionの処理をカスタマイズします。org.springframework.web.reactive.result.view 内の HttpStatusCode 使用
修飾子と型メソッド説明RedirectView.getStatusCode()使用するリダイレクトステータスコードを取得します。Rendering.status()レスポンスを設定する HTTP ステータスを返します。型 HttpStatusCode のパラメーターを持つ org.springframework.web.reactive.result.view のメソッド修飾子と型メソッド説明voidRedirectView.setStatusCode(HttpStatusCode statusCode) HttpStatus.TEMPORARY_REDIRECTやHttpStatus.PERMANENT_REDIRECTなどの代替リダイレクトステータスコードを設定します。Rendering.Builder.status(HttpStatusCode status) レスポンスに使用するステータスを指定します。型 HttpStatusCode のパラメーターを持つ org.springframework.web.reactive.result.view のコンストラクター修飾子コンストラクター説明RedirectView(StringSE redirectUrl, HttpStatusCode statusCode) 指定された URL とHttpStatus.TEMPORARY_REDIRECTやHttpStatus.PERMANENT_REDIRECTなどの代替リダイレクトステータスコードを使用して、新しいRedirectViewを作成します。org.springframework.web.server 内の HttpStatusCode 使用
型 HttpStatusCode のパラメーターを持つ org.springframework.web.server のコンストラクター修飾子コンストラクター説明レスポンスステータスを持つコンストラクター。ResponseStatusException(HttpStatusCode status, StringSE reason) 説明として例外メッセージに追加するレスポンスステータスと理由を持つコンストラクター。ResponseStatusException(HttpStatusCode status, StringSE reason, ThrowableSE cause) 説明として例外メッセージに追加するレスポンスステータスと理由、およびネストされた例外を持つコンストラクター。protectedResponseStatusException(HttpStatusCode status, StringSE reason, ThrowableSE cause, StringSE messageDetailCode, ObjectSE[] messageDetailArguments) MessageSourceを介してエラー「詳細」を解決するためのメッセージコードと引数を持つコンストラクター。org.springframework.web.server.handler 内の HttpStatusCode 使用
修飾子と型メソッド説明protected HttpStatusCodeResponseStatusExceptionHandler.determineStatus(ThrowableSE ex) 指定された例外の HTTP ステータスを判別します。org.springframework.web.servlet 内の HttpStatusCode 使用
修飾子と型メソッド説明ModelAndView.getStatus()レスポンスに構成された HTTP ステータスがあれば、それを返します。NoHandlerFoundException.getStatusCode()型 HttpStatusCode のパラメーターを持つ org.springframework.web.servlet のメソッド型 HttpStatusCode のパラメーターを持つ org.springframework.web.servlet のコンストラクター修飾子コンストラクター説明ModelAndView(StringSE viewName, MapSE<StringSE, ?> model, HttpStatusCode status) ビュー名、モデル、HTTP ステータスを指定して、新しい ModelAndView を作成します。ModelAndView(StringSE viewName, HttpStatusCode status) ビュー名と HTTP ステータスを指定して、新しい ModelAndView を作成します。org.springframework.web.servlet.config.annotation 内の HttpStatusCode 使用
型 HttpStatusCode のパラメーターを持つ org.springframework.web.servlet.config.annotation のメソッド修飾子と型メソッド説明voidViewControllerRegistry.addStatusController(StringSE urlPath, HttpStatusCode statusCode) 本文をレンダリングせずにレスポンスステータスを特定のコードに設定するには、単純なコントローラーを特定の URL パス(またはパターン)にマップします。RedirectViewControllerRegistration.setStatusCode(HttpStatusCode statusCode) 使用する特定のリダイレクト 3xx ステータスコードを設定します。ViewControllerRegistration.setStatusCode(HttpStatusCode statusCode) レスポンスに設定するステータスコードを設定します。org.springframework.web.servlet.function 内の HttpStatusCode 使用
型 HttpStatusCode のパラメーターを持つ org.springframework.web.servlet.function のメソッド修飾子と型メソッド説明EntityResponse.Builder.status(HttpStatusCode status) HTTP ステータスを設定します。RenderingResponse.Builder.status(HttpStatusCode status) HTTP ステータスを設定します。static ServerResponse.BodyBuilderServerResponse.status(HttpStatusCode status) 指定された HTTP ステータスでビルダーを作成します。org.springframework.web.servlet.mvc 内の HttpStatusCode 使用
型 HttpStatusCode のパラメーターを持つ org.springframework.web.servlet.mvc のメソッド修飾子と型メソッド説明voidParameterizableViewController.setStatusCode(HttpStatusCode statusCode) このコントローラーがレスポンスに設定する HTTP ステータスコードを構成します。org.springframework.web.servlet.mvc.method.annotation 内の HttpStatusCode 使用
型 HttpStatusCode のパラメーターを持つ org.springframework.web.servlet.mvc.method.annotation のメソッド修飾子と型メソッド説明protected ProblemDetailResponseEntityExceptionHandler.createProblemDetail(ExceptionSE ex, HttpStatusCode status, StringSE defaultDetail, StringSE detailMessageCode, ObjectSE[] detailMessageArguments, WebRequest request) protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.createResponseEntity(ObjectSE body, HttpHeaders headers, HttpStatusCode statusCode, WebRequest request) 指定された本文、ヘッダー、statusCode から使用するResponseEntityを作成します。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleAsyncRequestTimeoutException(AsyncRequestTimeoutException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) AsyncRequestTimeoutExceptionの処理をカスタマイズします。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleBindException(BindException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleConversionNotSupported(ConversionNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) ConversionNotSupportedExceptionの処理をカスタマイズします。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleErrorResponseException(ErrorResponseException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) ErrorResponseExceptionの処理をカスタマイズします。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleExceptionInternal(ExceptionSE ex, ObjectSE body, HttpHeaders headers, HttpStatusCode statusCode, WebRequest request) 共通の処理とResponseEntityの作成のために、このクラスの他のすべてが委譲する内部ハンドラーメソッド。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) HttpMediaTypeNotAcceptableExceptionの処理をカスタマイズします。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) HttpMediaTypeNotSupportedExceptionの処理をカスタマイズします。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleHttpMessageNotReadable(HttpMessageNotReadableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) HttpMessageNotReadableExceptionの処理をカスタマイズします。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleHttpMessageNotWritable(HttpMessageNotWritableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) HttpMessageNotWritableExceptionの処理をカスタマイズします。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleHttpRequestMethodNotSupported(HttpRequestMethodNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) HttpRequestMethodNotSupportedExceptionの処理をカスタマイズします。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleMethodArgumentNotValid(MethodArgumentNotValidException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) MethodArgumentNotValidExceptionの処理をカスタマイズします。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleMissingPathVariable(MissingPathVariableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) MissingPathVariableExceptionの処理をカスタマイズします。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleMissingServletRequestParameter(MissingServletRequestParameterException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) MissingServletRequestParameterExceptionの処理をカスタマイズします。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleMissingServletRequestPart(MissingServletRequestPartException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) MissingServletRequestPartExceptionの処理をカスタマイズします。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleNoHandlerFoundException(NoHandlerFoundException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) NoHandlerFoundExceptionの処理をカスタマイズします。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleServletRequestBindingException(ServletRequestBindingException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) ServletRequestBindingExceptionの処理をカスタマイズします。protected ResponseEntity<ObjectSE>ResponseEntityExceptionHandler.handleTypeMismatch(TypeMismatchException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) TypeMismatchExceptionの処理をカスタマイズします。org.springframework.web.servlet.view 内の HttpStatusCode 使用
修飾子と型メソッド説明protected HttpStatusCodeRedirectView.getHttp11StatusCode(HttpServletRequestEE request, HttpServletResponseEE response, StringSE targetUrl) HTTP 1.1 互換リクエストに使用するステータスコードを決定します。型 HttpStatusCode のパラメーターを持つ org.springframework.web.servlet.view のメソッドorg.springframework.web.socket.sockjs.transport.handler 内の HttpStatusCode 使用
修飾子と型メソッド説明protected abstract HttpStatusCodeAbstractHttpReceivingTransportHandler.getResponseStatus()protected HttpStatusCodeXhrReceivingTransportHandler.getResponseStatus()
ModelAttributeMethodProcessorがMethodArgumentNotValidExceptionのサブクラスを発生させるようになったため。