インターフェースの使用
org.springframework.http.HttpStatusCode
パッケージ
説明
クライアント / サーバー側 HTTP の基本的な抽象化が含まれています。
クライアント側の HTTP 上の抽象化が含まれています。
サーバー側の HTTP 上の抽象化が含まれています。
クライアント側の HTTP 抽象化のモック実装。
リアクティブ HTTP クライアント契約のモック実装。
ビルトイン
ResponseCreator
実装が含まれています。WebTestClient
を介した Spring WebFlux サーバーエンドポイントのテストのサポート。Spring の Web インフラストラクチャと他のフレームワークモジュール間の最小境界点を定義する一般的な汎用インターフェース。
Web 固有のデータバインディング機能を提供します。
クライアント側の Web サポートのコアパッケージ。
非同期リクエスト処理のサポート。
Bean スタイルの構成を可能にする汎用フィルター基本クラスを提供します。
リアクティブ Web アプリケーションで使用する
WebFilter
実装。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
実装クラスおよび具体的な SockJsService
org.springframework.http 内の HttpStatusCode 使用
修飾子と型メソッド説明ResponseEntity.getStatusCode()
レスポンスの HTTP ステータスコードを返します。static HttpStatusCode
HttpStatusCode.valueOf
(int code) 指定された整数値のHttpStatusCode
オブジェクトを返します。修飾子と型メソッド説明static ProblemDetail
ProblemDetail.forStatus
(HttpStatusCode status) 指定されたステータスコードでProblemDetail
インスタンスを作成します。static ProblemDetail
ProblemDetail.forStatusAndDetail
(HttpStatusCode status, StringSE detail) 指定されたステータスと詳細でProblemDetail
インスタンスを作成します。default boolean
HttpStatusCode.isSameCodeAs
(HttpStatusCode other) このHttpStatusCode
が他のステータスコードと同じ整数value
を共有するかどうか。static ResponseEntity.BodyBuilder
ResponseEntity.status
(HttpStatusCode status) 指定されたステータスでビルダーを作成します。修飾子コンストラクター説明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 statusCode) 本文、ヘッダー、ステータスコードを使用してResponseEntity
を作成します。org.springframework.http.client 内の HttpStatusCode 使用
org.springframework.http.client.reactive 内の HttpStatusCode 使用
修飾子と型メソッド説明AbstractClientHttpResponse.getStatusCode()
ClientHttpResponse.getStatusCode()
HTTP ステータスコードをHttpStatusCode
として返します。ClientHttpResponseDecorator.getStatusCode()
修飾子コンストラクター説明protected
AbstractClientHttpResponse
(HttpStatusCode statusCode, HttpHeaders headers, MultiValueMap<StringSE, ResponseCookie> cookies, reactor.core.publisher.Flux<DataBuffer> body) org.springframework.http.server 内の HttpStatusCode 使用
修飾子と型メソッド説明void
DelegatingServerHttpResponse.setStatusCode
(HttpStatusCode status) void
ServerHttpResponse.setStatusCode
(HttpStatusCode status) レスポンスの HTTP ステータスコードを設定します。void
ServletServerHttpResponse.setStatusCode
(HttpStatusCode status) org.springframework.http.server.reactive 内の HttpStatusCode 使用
修飾子と型メソッド説明AbstractServerHttpResponse.getStatusCode()
ServerHttpResponse.getStatusCode()
設定されたステータスコードを返すか、基になるサーバーからのレスポンスのステータスにフォールバックします。ServerHttpResponseDecorator.getStatusCode()
修飾子と型メソッド説明boolean
AbstractServerHttpResponse.setStatusCode
(HttpStatusCode status) boolean
ServerHttpResponse.setStatusCode
(HttpStatusCode status) レスポンスの HTTP ステータスコードを設定します。boolean
ServerHttpResponseDecorator.setStatusCode
(HttpStatusCode status) org.springframework.mock.http.client 内の HttpStatusCode 使用
修飾子コンストラクター説明MockClientHttpResponse
(byte[] body, HttpStatusCode statusCode) レスポンス本文をバイト配列として指定し、HTTP ステータスコードを指定してMockClientHttpResponse
を作成します。MockClientHttpResponse
(InputStreamSE body, HttpStatusCode statusCode) レスポンス本文をInputStream
SE とし、提供された HTTP ステータスコードを使用してMockClientHttpResponse
を作成します。org.springframework.mock.http.client.reactive 内の HttpStatusCode 使用
org.springframework.test.web.client.response 内の HttpStatusCode 使用
修飾子と型メソッド説明static DefaultResponseCreator
MockRestResponseCreators.withStatus
(HttpStatusCode status) 特定の HTTP ステータスを持つResponseCreator
。org.springframework.test.web.reactive.server 内の HttpStatusCode 使用
修飾子と型メソッド説明StatusAssertions.isEqualTo
(HttpStatusCode status) レスポンスステータスをHttpStatusCode
としてアサートします。org.springframework.web 内の HttpStatusCode 使用
修飾子と型メソッド説明ErrorResponse.getStatusCode()
レスポンスに使用する HTTP ステータスコードを返します。ErrorResponseException.getStatusCode()
HttpMediaTypeNotAcceptableException.getStatusCode()
HttpMediaTypeNotSupportedException.getStatusCode()
HttpRequestMethodNotSupportedException.getStatusCode()
修飾子と型メソッド説明static ErrorResponse.Builder
ErrorResponse.builder
(ThrowableSE ex, HttpStatusCode statusCode, StringSE detail) ErrorResponse
インスタンスを作成するビルダーを返します。static ErrorResponse
ErrorResponse.create
(ThrowableSE ex, HttpStatusCode statusCode, StringSE detail) ErrorResponse.builder(Throwable, HttpStatusCode, String)
を介してインスタンスを構築する静的ファクトリメソッド。修飾子コンストラクター説明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 使用
修飾子と型メソッド説明MethodArgumentNotValidException.getStatusCode()
MissingPathVariableException.getStatusCode()
ServletRequestBindingException.getStatusCode()
org.springframework.web.client 内の HttpStatusCode 使用
修飾子と型メソッド説明RestClientResponseException.getStatusCode()
HTTP ステータスコードを返します。UnknownContentTypeException.getStatusCode()
HTTP ステータスコード値を返します。修飾子と型メソッド説明static HttpClientErrorException
HttpClientErrorException.create
(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) オプションの準備済みメッセージを含むHttpClientErrorException.create(HttpStatusCode, String, HttpHeaders, byte[], Charset)
のバリアント。static HttpClientErrorException
HttpClientErrorException.create
(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) HttpClientErrorException
または HTTP ステータス固有のサブクラスを作成します。static HttpServerErrorException
HttpServerErrorException.create
(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) オプションの準備済みメッセージを含むHttpServerErrorException.create(String, HttpStatusCode, String, HttpHeaders, byte[], Charset)
のバリアント。static HttpServerErrorException
HttpServerErrorException.create
(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset) HttpServerErrorException
または HTTP ステータス固有のサブクラスを作成します。protected void
DefaultResponseErrorHandler.handleError
(ClientHttpResponse response, HttpStatusCode statusCode, URISE url, HttpMethod method) 解決されたステータスコードに基づいてエラーを処理します。protected void
ExtractingResponseErrorHandler.handleError
(ClientHttpResponse response, HttpStatusCode statusCode, URISE url, HttpMethod method) protected boolean
DefaultResponseErrorHandler.hasError
(HttpStatusCode statusCode) DefaultResponseErrorHandler.hasError(ClientHttpResponse)
から呼び出されるテンプレートメソッド。protected boolean
ExtractingResponseErrorHandler.hasError
(HttpStatusCode statusCode) 修飾子と型メソッド説明RestClient.Builder.defaultStatusHandler
(PredicateSE<HttpStatusCode> statusPredicate, RestClient.ResponseSpec.ErrorHandler errorHandler) すべてのレスポンスに適用するデフォルトのステータスハンドラーを登録します。RestClient.ResponseSpec.onStatus
(PredicateSE<HttpStatusCode> statusPredicate, RestClient.ResponseSpec.ErrorHandler errorHandler) 特定のエラーステータスコードをエラーハンドラーにマップする関数を提供します。void
ExtractingResponseErrorHandler.setStatusMapping
(MapSE<HttpStatusCode, ClassSE<? extends RestClientException>> statusMapping) HTTP ステータスコードからRestClientException
サブクラスへのマッピングを設定します。修飾子コンストラクター説明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) ステータスコードとステータステキスト、ヘッダー、コンテンツを持つコンストラクター。protected
HttpStatusCodeException
(StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders responseHeaders, byte[] responseBody, CharsetSE responseCharset) HttpStatusCode
、ステータステキスト、コンテンツ、レスポンス文字セットを使用してインスタンスを作成します。protected
HttpStatusCodeException
(HttpStatusCode statusCode) HttpStatusCode
を使用して新しいインスタンスを構築します。protected
HttpStatusCodeException
(HttpStatusCode statusCode, StringSE statusText) HttpStatusCode
とステータステキストで新しいインスタンスを構築します。protected
HttpStatusCodeException
(HttpStatusCode statusCode, StringSE statusText, byte[] responseBody, CharsetSE responseCharset) HttpStatusCode
、ステータステキスト、コンテンツでインスタンスを作成します。protected
HttpStatusCodeException
(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 使用
修飾子と型メソッド説明void
RelativeRedirectFilter.setRedirectStatus
(HttpStatusCode status) リダイレクトに使用するデフォルトの HTTP ステータスを設定します。org.springframework.web.filter.reactive 内の HttpStatusCode 使用
修飾子と型メソッド説明UrlHandlerFilter.Builder.TrailingSlashSpec.redirect
(HttpStatusCode statusCode) 末尾のスラッシュを取り除いた同じ URL にリダイレクトを送信してリクエストを処理します。org.springframework.web.method 内の HttpStatusCode 使用
org.springframework.web.method.support 内の HttpStatusCode 使用
修飾子と型メソッド説明void
ModelAndViewContainer.setStatus
(HttpStatusCode status) ビューのレンダリングに使用されるModelAndView
で渡される HTTP ステータスを提供します。org.springframework.web.multipart 内の HttpStatusCode 使用
org.springframework.web.multipart.support 内の HttpStatusCode 使用
org.springframework.web.reactive.function.client 内の HttpStatusCode 使用
修飾子と型メソッド説明WebClientResponseException.getStatusCode()
HTTP ステータスコード値を返します。ClientResponse.statusCode()
HTTP ステータスコードをHttpStatusCode
値として返します。修飾子と型メソッド説明static ClientResponse.Builder
ClientResponse.create
(HttpStatusCode statusCode) 指定されたステータスコードで、本文を読み取るためのデフォルトの戦略を使用して、レスポンスビルダーを作成します。static ClientResponse.Builder
ClientResponse.create
(HttpStatusCode statusCode, ListSE<HttpMessageReader<?>> messageReaders) 指定されたステータスコードとメッセージ本文リーダーを使用して、レスポンスビルダーを作成します。static ClientResponse.Builder
ClientResponse.create
(HttpStatusCode statusCode, ExchangeStrategies strategies) 指定されたステータスコードと本文を読み取るための戦略を使用して、レスポンスビルダーを作成します。static WebClientResponseException
WebClientResponseException.create
(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, CharsetSE charset, HttpRequest request) WebClientResponseException
または HTTP ステータス固有のサブクラスを作成します。ClientResponse.Builder.statusCode
(HttpStatusCode statusCode) レスポンスのステータスコードを設定します。修飾子と型メソッド説明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 ExchangeFilterFunction
ExchangeFilterFunctions.statusError
(PredicateSE<HttpStatusCode> statusPredicate, FunctionSE<ClientResponse, ? extends ThrowableSE> exceptionFunction) 指定されたHttpStatusCode
述語が一致したときにエラーシグナルを生成するフィルターを返します。修飾子コンストラクター説明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 使用
修飾子と型メソッド説明EntityResponse.Builder.status
(HttpStatusCode status) HTTP ステータスを設定します。RenderingResponse.Builder.status
(HttpStatusCode status) HTTP ステータスを設定します。static ServerResponse.BodyBuilder
ServerResponse.status
(HttpStatusCode status) 指定された HTTP ステータスでビルダーを作成します。org.springframework.web.reactive.handler 内の HttpStatusCode 使用
修飾子と型メソッド説明protected HttpStatusCode
WebFluxResponseStatusExceptionHandler.determineStatus
(ThrowableSE ex) org.springframework.web.reactive.result.method.annotation 内の HttpStatusCode 使用
修飾子と型メソッド説明protected ProblemDetail
ResponseEntityExceptionHandler.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.handleHandlerMethodValidationException
(HandlerMethodValidationException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) HandlerMethodValidationException
の処理をカスタマイズします。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()
使用するリダイレクトステータスコードを取得します。FragmentsRendering.status()
レスポンスを設定する HTTP ステータスを返します。Rendering.status()
レスポンスを設定する HTTP ステータスを返します。修飾子と型メソッド説明void
RedirectView.setStatusCode
(HttpStatusCode statusCode) HttpStatus.TEMPORARY_REDIRECT
やHttpStatus.PERMANENT_REDIRECT
などの代替リダイレクトステータスコードを設定します。FragmentsRendering.Builder.status
(HttpStatusCode status) レスポンスに使用するステータスを指定します。Rendering.Builder.status
(HttpStatusCode status) レスポンスに使用するステータスを指定します。修飾子コンストラクター説明RedirectView
(StringSE redirectUrl, HttpStatusCode statusCode) 指定された URL とHttpStatus.TEMPORARY_REDIRECT
やHttpStatus.PERMANENT_REDIRECT
などの代替リダイレクトステータスコードを使用して、新しいRedirectView
を作成します。org.springframework.web.server 内の HttpStatusCode 使用
修飾子コンストラクター説明レスポンスステータスを持つコンストラクター。ResponseStatusException
(HttpStatusCode status, StringSE reason) 説明として例外メッセージに追加するレスポンスステータスと理由を持つコンストラクター。ResponseStatusException
(HttpStatusCode status, StringSE reason, ThrowableSE cause) 説明として例外メッセージに追加するレスポンスステータスと理由、およびネストされた例外を持つコンストラクター。protected
ResponseStatusException
(HttpStatusCode status, StringSE reason, ThrowableSE cause, StringSE messageDetailCode, ObjectSE[] messageDetailArguments) MessageSource
を介してエラー「詳細」を解決するためのメッセージコードと引数を持つコンストラクター。org.springframework.web.server.handler 内の HttpStatusCode 使用
修飾子と型メソッド説明protected HttpStatusCode
ResponseStatusExceptionHandler.determineStatus
(ThrowableSE ex) 指定された例外の HTTP ステータスを判別します。org.springframework.web.servlet 内の HttpStatusCode 使用
修飾子と型メソッド説明ModelAndView.getStatus()
レスポンスに構成された HTTP ステータスがあれば、それを返します。NoHandlerFoundException.getStatusCode()
修飾子コンストラクター説明ModelAndView
(StringSE viewName, MapSE<StringSE, ?> model, HttpStatusCode status) ビュー名、モデル、HTTP ステータスを指定して、新しい ModelAndView を作成します。ModelAndView
(StringSE viewName, HttpStatusCode status) ビュー名と HTTP ステータスを指定して、新しい ModelAndView を作成します。org.springframework.web.servlet.config.annotation 内の HttpStatusCode 使用
修飾子と型メソッド説明void
ViewControllerRegistry.addStatusController
(StringSE urlPath, HttpStatusCode statusCode) 本文をレンダリングせずにレスポンスステータスを特定のコードに設定するには、単純なコントローラーを特定の URL パス(またはパターン)にマップします。RedirectViewControllerRegistration.setStatusCode
(HttpStatusCode statusCode) 使用する特定のリダイレクト 3xx ステータスコードを設定します。ViewControllerRegistration.setStatusCode
(HttpStatusCode statusCode) レスポンスに設定するステータスコードを設定します。org.springframework.web.servlet.function 内の HttpStatusCode 使用
修飾子と型メソッド説明EntityResponse.Builder.status
(HttpStatusCode status) HTTP ステータスを設定します。RenderingResponse.Builder.status
(HttpStatusCode status) HTTP ステータスを設定します。static ServerResponse.BodyBuilder
ServerResponse.status
(HttpStatusCode status) 指定された HTTP ステータスでビルダーを作成します。org.springframework.web.servlet.mvc 内の HttpStatusCode 使用
修飾子と型メソッド説明void
ParameterizableViewController.setStatusCode
(HttpStatusCode statusCode) このコントローラーがレスポンスに設定する HTTP ステータスコードを構成します。org.springframework.web.servlet.mvc.method.annotation 内の HttpStatusCode 使用
修飾子と型メソッド説明protected ProblemDetail
ResponseEntityExceptionHandler.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.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.handleHandlerMethodValidationException
(HandlerMethodValidationException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) HandlerMethodValidationException
の処理をカスタマイズします。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.handleMaxUploadSizeExceededException
(MaxUploadSizeExceededException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) MaxUploadSizeExceededException
の処理をカスタマイズします。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.handleNoResourceFoundException
(NoResourceFoundException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) NoResourceFoundException
の処理をカスタマイズします。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.resource 内の HttpStatusCode 使用
org.springframework.web.servlet.view 内の HttpStatusCode 使用
修飾子と型メソッド説明protected HttpStatusCode
RedirectView.getHttp11StatusCode
(HttpServletRequestEE request, HttpServletResponseEE response, StringSE targetUrl) HTTP 1.1 互換リクエストに使用するステータスコードを決定します。FragmentsRendering.status()
レスポンスを設定する HTTP ステータスを返します。修飾子と型メソッド説明void
RedirectView.setStatusCode
(HttpStatusCode statusCode) このビューのステータスコードを設定します。FragmentsRendering.Builder.status
(HttpStatusCode status) レスポンスに使用するステータスを指定します。org.springframework.web.socket.sockjs.transport.handler 内の HttpStatusCode 使用
修飾子と型メソッド説明protected abstract HttpStatusCode
AbstractHttpReceivingTransportHandler.getResponseStatus()
protected HttpStatusCode
XhrReceivingTransportHandler.getResponseStatus()