インターフェースの使用
org.springframework.http.HttpRequest
HttpRequest を使用するパッケージ
パッケージ
説明
クライアント側の HTTP 上の抽象化が含まれています。
このパッケージは、RestTemplate などの高レベルクラスで使用される汎用 HTTP サポートクラスを提供します。
サーバー側の HTTP 上の抽象化が含まれています。
クライアント側の HTTP 抽象化のモック実装。
リアクティブ HTTP サーバー契約のモック実装。
クライアント側の Web サポートのコアパッケージ。
マルチパート解決フレームワークのサポートクラス。
org.springframework.http.client.reactive リアクティブ HTTP アダプター層上に構築されるリアクティブ WebClient を提供します。org.springframework.web.reactive.function.client パッケージをサポートするクラス。HTML エスケープや Cookie 処理などのその他の Web ユーティリティクラス。
org.springframework.http.client 内の HttpRequest 使用
org.springframework.http.client 内の HttpRequest サブインターフェースHttpRequest を実装している org.springframework.http.client のクラス型 HttpRequest のパラメーターを持つ org.springframework.http.client のメソッド修飾子と型メソッド説明ClientHttpRequestExecution.execute(HttpRequest request, byte[] body) 与えられたリクエスト属性とボディでリクエストを実行し、レスポンスを返します。ClientHttpRequestInterceptor.intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) 指定されたリクエストをインターセプトし、レスポンスを返します。org.springframework.http.client.support 内の HttpRequest 使用
HttpRequest を実装している org.springframework.http.client.support のクラス型 HttpRequest のパラメーターを持つ org.springframework.http.client.support のメソッド修飾子と型メソッド説明BasicAuthenticationInterceptor.intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) 型 HttpRequest のパラメーターを持つ org.springframework.http.client.support のコンストラクター修飾子コンストラクター説明HttpRequestWrapper(HttpRequest request) 指定されたリクエストオブジェクトをラップする新しいHttpRequestを作成します。org.springframework.http.server 内の HttpRequest 使用
org.springframework.http.server 内の HttpRequest サブインターフェースHttpRequest を実装している org.springframework.http.server のクラスorg.springframework.http.server.reactive 内の HttpRequest 使用
org.springframework.http.server.reactive 内の HttpRequest サブインターフェースHttpRequest を実装している org.springframework.http.server.reactive のクラスorg.springframework.mock.http.client 内の HttpRequest 使用
HttpRequest を実装している org.springframework.mock.http.client のクラスorg.springframework.mock.http.server.reactive 内の HttpRequest 使用
HttpRequest を実装している org.springframework.mock.http.server.reactive のクラスorg.springframework.web.client 内の HttpRequest 使用
型 HttpRequest のパラメーターを持つ org.springframework.web.client のメソッド修飾子と型メソッド説明RestClient.RequestHeadersSpec.ExchangeFunction.exchange(HttpRequest clientRequest, RestClient.RequestHeadersSpec.ConvertibleClientHttpResponse clientResponse) 指定されたレスポンスをT型の値に変換します。RestClient.RequestHeadersSpec.RequiredValueExchangeFunction.exchange(HttpRequest clientRequest, RestClient.RequestHeadersSpec.ConvertibleClientHttpResponse clientResponse) 指定されたレスポンスをT型の値に変換します。voidRestClient.ResponseSpec.ErrorHandler.handle(HttpRequest request, ClientHttpResponse response) 指定されたレスポンスのエラーを処理します。org.springframework.web.multipart.support 内の HttpRequest 使用
HttpRequest を実装している org.springframework.web.multipart.support のクラスorg.springframework.web.reactive.function.client 内の HttpRequest 使用
修飾子と型メソッド説明WebClientResponseException.getRequest()対応するリクエストを返します。ClientResponse.request()レスポンスに関連付けられたリクエストを返します。型 HttpRequest のパラメーターを持つ org.springframework.web.reactive.function.client のメソッド修飾子と型メソッド説明static WebClientResponseExceptionWebClientResponseException.create(int statusCode, StringSE statusText, HttpHeaders headers, byte[] body, @Nullable CharsetSE charset, @Nullable HttpRequest request) WebClientResponseExceptionまたは HTTP ステータス固有のサブクラスを作成します。static WebClientResponseExceptionWebClientResponseException.create(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, @Nullable CharsetSE charset, @Nullable HttpRequest request) WebClientResponseExceptionまたは HTTP ステータス固有のサブクラスを作成します。ClientResponse.Builder.request(HttpRequest request) レスポンスに関連付けられたリクエストを設定します。型 HttpRequest のパラメーターを持つ org.springframework.web.reactive.function.client のコンストラクター修飾子コンストラクター説明UnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, @Nullable CharsetSE responseCharset, @Nullable HttpRequest request) 指定されたパラメーターでUnknownHttpStatusCodeExceptionの新しいインスタンスを作成します。UnknownHttpStatusCodeException(HttpStatusCode statusCode, HttpHeaders headers, byte[] responseBody, @Nullable CharsetSE responseCharset, @Nullable HttpRequest request) 指定されたパラメーターでUnknownHttpStatusCodeExceptionの新しいインスタンスを作成します。WebClientResponseException(int status, StringSE reasonPhrase, @Nullable HttpHeaders headers, byte @Nullable [] body, @Nullable CharsetSE charset, @Nullable HttpRequest request) レスポンスデータのみを含むコンストラクター、およびデフォルトメッセージ。WebClientResponseException(StringSE message, int statusCode, StringSE statusText, @Nullable HttpHeaders headers, byte @Nullable [] responseBody, @Nullable CharsetSE charset, @Nullable HttpRequest request) 準備されたメッセージを持つコンストラクター。WebClientResponseException(StringSE message, HttpStatusCode statusCode, StringSE statusText, @Nullable HttpHeaders headers, byte @Nullable [] responseBody, @Nullable CharsetSE charset, @Nullable HttpRequest request) 準備されたメッセージを持つコンストラクター。WebClientResponseException(HttpStatusCode statusCode, StringSE reasonPhrase, @Nullable HttpHeaders headers, byte @Nullable [] body, @Nullable CharsetSE charset, @Nullable HttpRequest request) レスポンスデータのみを含むコンストラクター、およびデフォルトメッセージ。org.springframework.web.reactive.function.client.support 内の HttpRequest 使用
org.springframework.web.util 内の HttpRequest 使用
型 HttpRequest のパラメーターを持つ org.springframework.web.util のメソッド修飾子と型メソッド説明static booleanWebUtils.isSameOrigin(HttpRequest request) Origin、Host、Forwarded、X-Forwarded-Proto、X-Forwarded-Host、X-Forwarded-Portヘッダーに基づいて、リクエストが同一生成元のものであるかどうかを確認します。static booleanWebUtils.isValidOrigin(HttpRequest request, CollectionSE<StringSE> allowedOrigins) 指定されたリクエストの起点を、許可された起点のリストと照合します。