クラスの使用
org.springframework.http.HttpMethod
HttpMethod を使用するパッケージ
パッケージ
説明
クライアント / サーバー側 HTTP の基本的な抽象化が含まれています。
クライアント側の HTTP 上の抽象化が含まれています。
このパッケージは、RestTemplate などの高レベルクラスで使用される汎用 HTTP サポートクラスを提供します。
サーバー側の HTTP 上の抽象化が含まれています。
クライアント側の HTTP 抽象化のモック実装。
リアクティブ HTTP クライアント契約のモック実装。
リアクティブ HTTP サーバー契約のモック実装。
Spring の Web MVC フレームワークでの使用を対象とした、サーブレット API 6.0 モックオブジェクトの包括的なセット。
関数 Web フレームワークのモックオブジェクト。
クライアント側の REST テストサポートが含まれています。
ビルトイン
RequestMatcher 実装が含まれています。WebTestClient を介した Spring WebFlux サーバーエンドポイントのテストのサポート。MockMvc の AssertJ サポート。
サーバーリクエスト処理のための
MockMvc を使用した WebTestClient を介した Spring MVC アプリケーションのテストのサポート。 ビルトイン
RequestBuilder 実装が含まれています。Spring の Web インフラストラクチャと他のフレームワークモジュール間の最小境界点を定義する一般的な汎用インターフェース。
リクエストをコントローラーおよびハンドラーメソッドにバインドするためのアノテーションと、リクエストパラメーターをメソッド引数にバインドするためのアノテーション。
クライアント側の Web サポートのコアパッケージ。
一般的なリクエストコンテキストの保持、特に HTTP リクエストまたは HTTP セッションごとのアプリケーションオブジェクトのスコープのサポート。
一般的な
CorsProcessor 戦略に基づく、CORS(クロスオリジンリソースシェアリング)のサポート。 一般的な
CorsProcessor 戦略に基づく、CORS(クロスオリジンリソースシェアリング)のリアクティブサポート。 ファイルのアップロードを処理するためのマルチパート解決フレームワーク。
マルチパート解決フレームワークのサポートクラス。
org.springframework.http.client.reactive リアクティブ HTTP アダプター層上に構築されるリアクティブ WebClient を提供します。Spring のリアクティブ環境用の関数 Web フレームワークを構成する型を提供します。
org.springframework.web.reactive.function.server パッケージをサポートするクラス。Spring の一般的なリアクティブ Web サポートのコアインターフェースとクラス。
HttpExchange メソッドでアノテーションが付けられた HTTP サービスのクライアントプロキシを作成するためのサポート。Spring のサーブレット環境用の関数 Web フレームワークを構成する型を提供します。
静的リソースを提供するためのサポートクラス。
AbstractSockJsService 実装を含む SockJS のサポートクラス。 受信リクエストを処理するための
TransportHandler 実装、さまざまなトランスポートを介してメッセージを送信するための session の実装、および DefaultSockJsService を含む SockJS トランスポートのサーバー側サポート。org.springframework.http 内の HttpMethod 使用
HttpMethod として宣言されている org.springframework.http のフィールド修飾子と型フィールド説明static final HttpMethodHttpMethod.DELETEHTTP メソッドDELETE。static final HttpMethodHttpMethod.GETHTTP メソッドGET。static final HttpMethodHttpMethod.HEADHTTP メソッドHEAD。static final HttpMethodHttpMethod.OPTIONSHTTP メソッドOPTIONS。static final HttpMethodHttpMethod.PATCHHTTP メソッドPATCH。static final HttpMethodHttpMethod.POSTHTTP メソッドPOST。static final HttpMethodHttpMethod.PUTHTTP メソッドPUT。static final HttpMethodHttpMethod.TRACEHTTP メソッドTRACE。HttpMethod を返す org.springframework.http のメソッド修飾子と型メソッド説明HttpHeaders.getAccessControlRequestMethod()Access-Control-Request-Methodリクエストヘッダーの値を返します。HttpRequest.getMethod()リクエストの HTTP メソッドを返します。RequestEntity.getMethod()リクエストの HTTP メソッドを返します。static HttpMethod指定された値のHttpMethodオブジェクトを返します。static HttpMethod[]HttpMethod.values()標準の HTTP メソッドを含む配列を返します。型 HttpMethod の引数を持つ型を返す org.springframework.http のメソッド修飾子と型メソッド説明HttpHeaders.getAccessControlAllowMethods()Access-Control-Allow-Methodsレスポンスヘッダーの値を返します。HttpHeaders.getAllow()Allowヘッダーで指定されている、許可されたHTTP methodsのセットを返します。型 HttpMethod のパラメーターを持つ org.springframework.http のメソッド修飾子と型メソッド説明ResponseEntity.HeadersBuilder.allow(HttpMethod... allowedMethods) Allowヘッダーの指定に従って、許可されたHTTP methodsのセットを設定します。intHttpMethod.compareTo(HttpMethod other) static RequestEntity.BodyBuilderRequestEntity.method(HttpMethod method, StringSE uriTemplate, ObjectSE... uriVariables) 指定された HTTP メソッド、URI テンプレート、変数を使用してビルダーを作成します。static RequestEntity.BodyBuilderRequestEntity.method(HttpMethod method, StringSE uriTemplate, MapSE<StringSE, ?> uriVariables) 指定された HTTP メソッド、URI テンプレート、変数を使用してビルダーを作成します。static RequestEntity.BodyBuilderRequestEntity.method(HttpMethod method, URISE url) 指定されたメソッドと URL でビルダーを作成します。voidHttpHeaders.setAccessControlRequestMethod(HttpMethod requestMethod) Access-Control-Request-Methodリクエストヘッダーの(新しい)値を設定します。型 HttpMethod の型引数を持つ org.springframework.http のメソッドパラメーター修飾子と型メソッド説明voidHttpHeaders.setAccessControlAllowMethods(ListSE<HttpMethod> allowedMethods) Access-Control-Allow-Methodsレスポンスヘッダーの(新しい)値を設定します。voidHttpHeaders.setAllow(SetSE<HttpMethod> allowedMethods) Allowヘッダーの指定に従って、許可されたHTTP methodsのセットを設定します。型 HttpMethod のパラメーターを持つ org.springframework.http のコンストラクター修飾子コンストラクター説明RequestEntity(HttpMethod method, URISE url) メソッドと URL はあるが、本文もヘッダーもないコンストラクター。RequestEntity(MultiValueMap<StringSE, StringSE> headers, HttpMethod method, URISE url) メソッド、URL、ヘッダーはあるが本文はないコンストラクター。RequestEntity(T body, HttpMethod method, URISE url) メソッド、URL、ボディはあるがヘッダーはないコンストラクター。RequestEntity(T body, HttpMethod method, URISE url, TypeSE type) メソッド、URL、ボディ、型はあるがヘッダーはないコンストラクター。RequestEntity(T body, MultiValueMap<StringSE, StringSE> headers, HttpMethod method, URISE url) メソッド、URL、ヘッダー、本文を含むコンストラクター。RequestEntity(T body, MultiValueMap<StringSE, StringSE> headers, HttpMethod method, URISE url, TypeSE type) メソッド、URL、ヘッダー、ボディ、型を持つコンストラクター。org.springframework.http.client 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.http.client のメソッド修飾子と型メソッド説明protected org.apache.hc.core5.http.protocol.HttpContextHttpComponentsClientHttpRequestFactory.createHttpContext(HttpMethod httpMethod, URISE uri) 指定された HTTP メソッドと URI に対してHttpContextを作成するテンプレートメソッド。protected org.apache.hc.core5.http.ClassicHttpRequestHttpComponentsClientHttpRequestFactory.createHttpUriRequest(HttpMethod httpMethod, URISE uri) 指定された HTTP メソッドと URI 仕様の Commons HttpMethodBase オブジェクトを作成します。final ClientHttpRequestAbstractClientHttpRequestFactoryWrapper.createRequest(URISE uri, HttpMethod httpMethod) この実装は、コンストラクターに提供されたラップされたリクエストファクトリを使用してAbstractClientHttpRequestFactoryWrapper.createRequest(URI, HttpMethod, ClientHttpRequestFactory)を呼び出すだけです。protected abstract ClientHttpRequestAbstractClientHttpRequestFactoryWrapper.createRequest(URISE uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) 渡されたリクエストファクトリを使用して、指定された URI および HTTP メソッドの新しいClientHttpRequestを作成します。protected ClientHttpRequestBufferingClientHttpRequestFactory.createRequest(URISE uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) ClientHttpRequestFactory.createRequest(URISE uri, HttpMethod httpMethod) 指定された URI および HTTP メソッドの新しいClientHttpRequestを作成します。HttpComponentsClientHttpRequestFactory.createRequest(URISE uri, HttpMethod httpMethod) protected ClientHttpRequestInterceptingClientHttpRequestFactory.createRequest(URISE uri, HttpMethod httpMethod, ClientHttpRequestFactory requestFactory) JdkClientHttpRequestFactory.createRequest(URISE uri, HttpMethod httpMethod) JettyClientHttpRequestFactory.createRequest(URISE uri, HttpMethod httpMethod) OkHttp3ClientHttpRequestFactory.createRequest(URISE uri, HttpMethod httpMethod) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。ReactorClientHttpRequestFactory.createRequest(URISE uri, HttpMethod httpMethod) SimpleClientHttpRequestFactory.createRequest(URISE uri, HttpMethod httpMethod) protected booleanBufferingClientHttpRequestFactory.shouldBuffer(URISE uri, HttpMethod httpMethod) 指定された URI およびメソッドのリクエスト / レスポンス交換をメモリにバッファリングする必要があるかどうかを示します。型 HttpMethod の型引数を持つ org.springframework.http.client のメソッドパラメーター修飾子と型メソッド説明voidHttpComponentsClientHttpRequestFactory.setHttpContextFactory(BiFunctionSE<HttpMethod, URISE, org.apache.hc.core5.http.protocol.HttpContext> httpContextFactory) リクエストごとにHttpContextを事前に作成するようにファクトリを構成します。org.springframework.http.client.reactive 内の HttpMethod 使用
修飾子と型メソッド説明ClientHttpRequest.getMethod()リクエストの HTTP メソッドを返します。ClientHttpRequestDecorator.getMethod()型 HttpMethod のパラメーターを持つ org.springframework.http.client.reactive のメソッド修飾子と型メソッド説明reactor.core.publisher.Mono<ClientHttpResponse>ClientHttpConnector.connect(HttpMethod method, URISE uri, FunctionSE<? super ClientHttpRequest, reactor.core.publisher.Mono<VoidSE>> requestCallback) 指定されたHttpMethodとURIを使用してオリジンサーバーに接続し、基になる API の HTTP リクエストを初期化して書き込むことができるときに指定されたrequestCallbackを適用します。reactor.core.publisher.Mono<ClientHttpResponse>HttpComponentsClientHttpConnector.connect(HttpMethod method, URISE uri, FunctionSE<? super ClientHttpRequest, reactor.core.publisher.Mono<VoidSE>> requestCallback) reactor.core.publisher.Mono<ClientHttpResponse>JdkClientHttpConnector.connect(HttpMethod method, URISE uri, FunctionSE<? super ClientHttpRequest, reactor.core.publisher.Mono<VoidSE>> requestCallback) reactor.core.publisher.Mono<ClientHttpResponse>JettyClientHttpConnector.connect(HttpMethod method, URISE uri, FunctionSE<? super ClientHttpRequest, reactor.core.publisher.Mono<VoidSE>> requestCallback) reactor.core.publisher.Mono<ClientHttpResponse>ReactorClientHttpConnector.connect(HttpMethod method, URISE uri, FunctionSE<? super ClientHttpRequest, reactor.core.publisher.Mono<VoidSE>> requestCallback) reactor.core.publisher.Mono<ClientHttpResponse>ReactorNetty2ClientHttpConnector.connect(HttpMethod method, URISE uri, FunctionSE<? super ClientHttpRequest, reactor.core.publisher.Mono<VoidSE>> requestCallback) 型の型引数を持つ org.springframework.http.client.reactive のコンストラクターパラメーター HttpMethod修飾子コンストラクター説明HttpComponentsClientHttpConnector(CloseableHttpAsyncClient client, BiFunctionSE<HttpMethod, URISE, ? extends HttpClientContext> contextProvider) 事前構成されたCloseableHttpAsyncClientインスタンスと、各リクエストの前に呼び出され、クライアントに渡されるHttpClientContextサプライヤーラムダを持つコンストラクター。org.springframework.http.client.support 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.http.client.support のメソッド修飾子と型メソッド説明protected ClientHttpRequestHttpAccessor.createRequest(URISE url, HttpMethod method) このテンプレートのClientHttpRequestFactoryを介して新しいClientHttpRequestを作成します。org.springframework.http.server 内の HttpMethod 使用
HttpMethod を返す org.springframework.http.server のメソッドorg.springframework.http.server.reactive 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.http.server.reactive のメソッド型 HttpMethod のパラメーターを持つ org.springframework.http.server.reactive のコンストラクター修飾子コンストラクター説明AbstractServerHttpRequest(HttpMethod method, URISE uri, StringSE contextPath, MultiValueMap<StringSE, StringSE> headers) リクエストのメソッド、URI、ヘッダーを持つコンストラクター。org.springframework.mock.http.client 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.mock.http.client のメソッド型 HttpMethod のパラメーターを持つ org.springframework.mock.http.client のコンストラクター修飾子コンストラクター説明MockClientHttpRequest(HttpMethod httpMethod, StringSE uriTemplate, ObjectSE... vars) 指定されたHttpMethod、URI テンプレート、URI テンプレート変数値でMockClientHttpRequestを作成します。MockClientHttpRequest(HttpMethod httpMethod, URISE uri) org.springframework.mock.http.client.reactive 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.mock.http.client.reactive のコンストラクター修飾子コンストラクター説明MockClientHttpRequest(HttpMethod httpMethod, StringSE urlTemplate, ObjectSE... vars) MockClientHttpRequest(HttpMethod httpMethod, URISE url) org.springframework.mock.http.server.reactive 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.mock.http.server.reactive のメソッド修飾子と型メソッド説明MockServerHttpRequest.method(HttpMethod method, StringSE uri, ObjectSE... vars) URI テンプレートを受け入れるMockServerHttpRequest.method(HttpMethod, URI)の代替。MockServerHttpRequest.method(HttpMethod method, URISE url) 指定された HTTP メソッドとURISE でビルダーを作成します。org.springframework.mock.web 内の HttpMethod 使用
HttpMethod を返す org.springframework.mock.web のメソッドorg.springframework.mock.web.reactive.function.server 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.mock.web.reactive.function.server のメソッドorg.springframework.test.web.client 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.test.web.client のメソッドorg.springframework.test.web.client.match 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.test.web.client.match のメソッド修飾子と型メソッド説明static RequestMatcherMockRestRequestMatchers.method(HttpMethod method) リクエストのHttpMethodをアサートします。org.springframework.test.web.reactive.server 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.test.web.reactive.server のメソッド修飾子と型メソッド説明reactor.core.publisher.Mono<ClientHttpResponse>HttpHandlerConnector.connect(HttpMethod httpMethod, URISE uri, FunctionSE<? super ClientHttpRequest, reactor.core.publisher.Mono<VoidSE>> requestCallback) WebTestClient.method(HttpMethod method) 指定されたHttpMethodのリクエストを準備します。org.springframework.test.web.servlet.assertj 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.test.web.servlet.assertj のメソッドorg.springframework.test.web.servlet.client 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.test.web.servlet.client のメソッド修飾子と型メソッド説明reactor.core.publisher.Mono<ClientHttpResponse>MockMvcHttpConnector.connect(HttpMethod method, URISE uri, FunctionSE<? super ClientHttpRequest, reactor.core.publisher.Mono<VoidSE>> requestCallback) org.springframework.test.web.servlet.request 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.test.web.servlet.request のメソッド修飾子と型メソッド説明MockMvcRequestBuilders.multipart(HttpMethod httpMethod, StringSE uriTemplate, ObjectSE... uriVariables) HttpMethodも受け入れるMockMvcRequestBuilders.multipart(String, Object...)のバリアント。MockMvcRequestBuilders.multipart(HttpMethod httpMethod, URISE uri) MockMvcRequestBuilders.request(HttpMethod method, StringSE uriTemplate, ObjectSE... uriVariables) 指定された HTTP メソッドでリクエストのMockHttpServletRequestBuilderを作成します。MockMvcRequestBuilders.request(HttpMethod httpMethod, URISE uri) 指定された HTTP メソッドでリクエストのMockHttpServletRequestBuilderを作成します。型 HttpMethod のパラメーターを持つ org.springframework.test.web.servlet.request のコンストラクター修飾子コンストラクター説明protectedAbstractMockHttpServletRequestBuilder(HttpMethod httpMethod) 指定されたHttpMethodを使用して新しいインスタンスを作成します。protectedorg.springframework.web 内の HttpMethod 使用
型 HttpMethod の引数を持つ型を返す org.springframework.web のメソッド修飾子と型メソッド説明HttpRequestMethodNotSupportedException.getSupportedHttpMethods()実際にサポートされている HTTP メソッドをHttpMethodインスタンス、または不明の場合はnullとして返します。型 HttpMethod のパラメーターを持つ org.springframework.web のコンストラクター修飾子コンストラクター説明HttpMediaTypeNotSupportedException(MediaType contentType, ListSE<MediaType> mediaTypes, HttpMethod httpMethod) 新しい HttpMediaTypeNotSupportedException を作成します。HttpMediaTypeNotSupportedException(MediaType contentType, ListSE<MediaType> supportedMediaTypes, HttpMethod httpMethod, StringSE message) 新しい HttpMediaTypeNotSupportedException を作成します。org.springframework.web.bind.annotation 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.web.bind.annotation のメソッド修飾子と型メソッド説明static RequestMethodRequestMethod.resolve(HttpMethod httpMethod) 指定されたHttpMethodをRequestMethod列挙値に解決します。org.springframework.web.client 内の HttpMethod 使用
型 HttpMethod の引数を持つ型を返す org.springframework.web.client のメソッド修飾子と型メソッド説明RestOperations.optionsForAllow(StringSE url, ObjectSE... uriVariables) 指定された URI のAllowヘッダーの値を返します。RestOperations.optionsForAllow(StringSE url, MapSE<StringSE, ?> uriVariables) 指定された URI のAllowヘッダーの値を返します。RestOperations.optionsForAllow(URISE url) 指定された URL のAllowヘッダーの値を返します。RestTemplate.optionsForAllow(StringSE url, ObjectSE... uriVariables) RestTemplate.optionsForAllow(StringSE url, MapSE<StringSE, ?> uriVariables) RestTemplate.optionsForAllow(URISE url) 型 HttpMethod のパラメーターを持つ org.springframework.web.client のメソッド修飾子と型メソッド説明protected <T> TRestTemplate.doExecute(URISE url, StringSE uriTemplate, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor) 指定された URI で指定されたメソッドを実行します。protected <T> TRestTemplate.doExecute(URISE url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor) 使用すべきではありません。<T> ResponseEntity<T>RestOperations.exchange(StringSE url, HttpMethod method, HttpEntity<?> requestEntity, ClassSE<T> responseType, ObjectSE... uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスをResponseEntityとして返します。<T> ResponseEntity<T>RestOperations.exchange(StringSE url, HttpMethod method, HttpEntity<?> requestEntity, ClassSE<T> responseType, MapSE<StringSE, ?> uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスをResponseEntityとして返します。<T> ResponseEntity<T>RestOperations.exchange(StringSE url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, ObjectSE... uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスをResponseEntityとして返します。<T> ResponseEntity<T>RestOperations.exchange(StringSE url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, MapSE<StringSE, ?> uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスをResponseEntityとして返します。<T> ResponseEntity<T>RestOperations.exchange(URISE url, HttpMethod method, HttpEntity<?> requestEntity, ClassSE<T> responseType) 指定された URI テンプレートに対して HTTP メソッドを実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスをResponseEntityとして返します。<T> ResponseEntity<T>RestOperations.exchange(URISE url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) 指定された URI テンプレートに対して HTTP メソッドを実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスをResponseEntityとして返します。<T> ResponseEntity<T>RestTemplate.exchange(StringSE url, HttpMethod method, HttpEntity<?> requestEntity, ClassSE<T> responseType, ObjectSE... uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(StringSE url, HttpMethod method, HttpEntity<?> requestEntity, ClassSE<T> responseType, MapSE<StringSE, ?> uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(StringSE url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, ObjectSE... uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(StringSE url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, MapSE<StringSE, ?> uriVariables) <T> ResponseEntity<T>RestTemplate.exchange(URISE url, HttpMethod method, HttpEntity<?> requestEntity, ClassSE<T> responseType) <T> ResponseEntity<T>RestTemplate.exchange(URISE url, HttpMethod method, HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) <T> TRestOperations.execute(StringSE uriTemplate, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, ObjectSE... uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、RequestCallbackを使用してリクエストを準備し、ResponseExtractorを使用してレスポンスを読み取ります。<T> TRestOperations.execute(StringSE uriTemplate, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, MapSE<StringSE, ?> uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、RequestCallbackを使用してリクエストを準備し、ResponseExtractorを使用してレスポンスを読み取ります。<T> TRestOperations.execute(URISE url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor) 指定された URL に対して HTTP メソッドを実行し、RequestCallbackを使用してリクエストを準備し、ResponseExtractorを使用してレスポンスを読み取ります。<T> TRestTemplate.execute(StringSE uriTemplate, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, ObjectSE... uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、RequestCallbackを使用してリクエストを準備し、ResponseExtractorを使用してレスポンスを読み取ります。<T> TRestTemplate.execute(StringSE uriTemplate, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor, MapSE<StringSE, ?> uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、RequestCallbackを使用してリクエストを準備し、ResponseExtractorを使用してレスポンスを読み取ります。<T> TRestTemplate.execute(URISE url, HttpMethod method, RequestCallback requestCallback, ResponseExtractor<T> responseExtractor) 指定された URL に対して HTTP メソッドを実行し、RequestCallbackを使用してリクエストを準備し、ResponseExtractorを使用してレスポンスを読み取ります。voidDefaultResponseErrorHandler.handleError(URISE url, HttpMethod method, ClientHttpResponse response) 指定された解決済みのステータスコードと、リクエスト URL および HTTP メソッドへのアクセスを提供する追加情報を使用して、指定されたレスポンス内のエラーを処理します。protected voidDefaultResponseErrorHandler.handleError(ClientHttpResponse response, HttpStatusCode statusCode, URISE url, HttpMethod method) 解決されたステータスコードに基づいてエラーを処理します。protected voidExtractingResponseErrorHandler.handleError(ClientHttpResponse response, HttpStatusCode statusCode, URISE url, HttpMethod method) default voidResponseErrorHandler.handleError(URISE url, HttpMethod method, ClientHttpResponse response) 指定されたレスポンスのエラーを処理します。protected voidRestTemplate.handleResponse(URISE url, HttpMethod method, ClientHttpResponse response) 指定されたレスポンスを処理し、適切なロギングを実行し、必要に応じてResponseErrorHandlerを呼び出します。RestClient.method(HttpMethod method) 指定されたHttpMethodのリクエストの構築を開始します。org.springframework.web.context.request 内の HttpMethod 使用
org.springframework.web.cors 内の HttpMethod 使用
型 HttpMethod の引数を持つ型を返す org.springframework.web.cors のメソッド修飾子と型メソッド説明CorsConfiguration.checkHttpMethod(HttpMethod requestMethod) HTTP リクエストメソッド(またはプリフライトリクエストのAccess-Control-Request-Methodヘッダーのメソッド)を、構成された許可されたメソッドと照合します。protected ListSE<HttpMethod>DefaultCorsProcessor.checkMethods(CorsConfiguration config, HttpMethod requestMethod) HTTP メソッドを確認し、プリフライトリクエストのレスポンスのメソッドを決定します。型 HttpMethod のパラメーターを持つ org.springframework.web.cors のメソッド修飾子と型メソッド説明voidCorsConfiguration.addAllowedMethod(HttpMethod method) 許可されたメソッドを一度に 1 つずつ追加するためのCorsConfiguration.setAllowedMethods(java.util.List<java.lang.String>)のバリアント。CorsConfiguration.checkHttpMethod(HttpMethod requestMethod) HTTP リクエストメソッド(またはプリフライトリクエストのAccess-Control-Request-Methodヘッダーのメソッド)を、構成された許可されたメソッドと照合します。protected ListSE<HttpMethod>DefaultCorsProcessor.checkMethods(CorsConfiguration config, HttpMethod requestMethod) HTTP メソッドを確認し、プリフライトリクエストのレスポンスのメソッドを決定します。org.springframework.web.cors.reactive 内の HttpMethod 使用
型 HttpMethod の引数を持つ型を返す org.springframework.web.cors.reactive のメソッド修飾子と型メソッド説明protected ListSE<HttpMethod>DefaultCorsProcessor.checkMethods(CorsConfiguration config, HttpMethod requestMethod) HTTP メソッドを確認し、プリフライトリクエストのレスポンスのメソッドを決定します。型 HttpMethod のパラメーターを持つ org.springframework.web.cors.reactive のメソッド修飾子と型メソッド説明protected ListSE<HttpMethod>DefaultCorsProcessor.checkMethods(CorsConfiguration config, HttpMethod requestMethod) HTTP メソッドを確認し、プリフライトリクエストのレスポンスのメソッドを決定します。org.springframework.web.multipart 内の HttpMethod 使用
HttpMethod を返す org.springframework.web.multipart のメソッド修飾子と型メソッド説明MultipartHttpServletRequest.getRequestMethod()このリクエストのメソッドを便利な HttpMethod インスタンスとして返します。org.springframework.web.multipart.support 内の HttpMethod 使用
org.springframework.web.reactive.function.client 内の HttpMethod 使用
修飾子と型メソッド説明WebClientRequestException.getMethod()HTTP リクエストメソッドを返します。ClientRequest.method()HTTP メソッドを返します。型 HttpMethod のパラメーターを持つ org.springframework.web.reactive.function.client のメソッド修飾子と型メソッド説明static ClientRequest.BuilderClientRequest.create(HttpMethod method, URISE url) 指定された HTTP メソッドと URL を使用してリクエストビルダーを作成します。ClientRequest.Builder.method(HttpMethod method) リクエストのメソッドを設定します。static ClientRequest.BuilderClientRequest.method(HttpMethod method, URISE url) 使用すべきではありません。WebClient.method(HttpMethod method) 指定されたHttpMethodのリクエストの構築を開始します。型 HttpMethod のパラメーターを持つ org.springframework.web.reactive.function.client のコンストラクター修飾子コンストラクター説明WebClientRequestException(ThrowableSE ex, HttpMethod method, URISE uri, HttpHeaders headers) スロー可能のコンストラクター。org.springframework.web.reactive.function.server 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.web.reactive.function.server のメソッド修飾子と型メソッド説明EntityResponse.Builder.allow(HttpMethod... allowedMethods) Allowヘッダーの指定に従って、許可されたHTTP methodsのセットを設定します。ServerResponse.HeadersBuilder.allow(HttpMethod... allowedMethods) Allowヘッダーの指定に従って、許可されたHTTP methodsのセットを設定します。static RequestPredicateRequestPredicates.method(HttpMethod httpMethod) リクエストの HTTP メソッドが指定されたメソッドと等しい場合に一致するRequestPredicateを返します。ServerRequest.Builder.method(HttpMethod method) リクエストのメソッドを設定します。static RequestPredicateRequestPredicates.methods(HttpMethod... httpMethods) リクエストの HTTP メソッドが指定されたメソッドの 1 つと等しい場合に一致するRequestPredicateを返します。型 HttpMethod の型引数を持つ org.springframework.web.reactive.function.server のメソッドパラメーター修飾子と型メソッド説明EntityResponse.Builder.allow(SetSE<HttpMethod> allowedMethods) Allowヘッダーの指定に従って、許可されたHTTP methodsのセットを設定します。ServerResponse.HeadersBuilder.allow(SetSE<HttpMethod> allowedMethods) Allowヘッダーの指定に従って、許可されたHTTP methodsのセットを設定します。voidRequestPredicates.Visitor.method(SetSE<HttpMethod> methods) HTTP メソッド述語の通知を受け取ります。org.springframework.web.reactive.function.server.support 内の HttpMethod 使用
org.springframework.web.server 内の HttpMethod 使用
型 HttpMethod の引数を持つ型を返す org.springframework.web.server のメソッド型 HttpMethod のパラメーターを持つ org.springframework.web.server のコンストラクター修飾子コンストラクター説明MethodNotAllowedException(HttpMethod method, CollectionSE<HttpMethod> supportedMethods) UnsupportedMediaTypeStatusException(MediaType contentType, ListSE<MediaType> supportedTypes, ResolvableType bodyType, HttpMethod method) 特定の Java 型からエンコードまたはデコードしようとする場合のコンストラクター。UnsupportedMediaTypeStatusException(MediaType contentType, ListSE<MediaType> supportedTypes, HttpMethod method) HTTP メソッドを提供するコンストラクター。型の型引数を持つ org.springframework.web.server のコンストラクターパラメーター HttpMethod修飾子コンストラクター説明MethodNotAllowedException(StringSE method, CollectionSE<HttpMethod> supportedMethods) MethodNotAllowedException(HttpMethod method, CollectionSE<HttpMethod> supportedMethods) org.springframework.web.service.invoker 内の HttpMethod 使用
修飾子と型メソッド説明HttpRequestValues.Builder.getHttpMethod()HttpRequestValues.getHttpMethod()リクエストに使用する HTTP メソッドを返します。HttpRequestValues.Metadata.getHttpMethod()わかっている場合は HTTP メソッドを返します。型 HttpMethod のパラメーターを持つ org.springframework.web.service.invoker のメソッド修飾子と型メソッド説明protected HttpRequestValuesHttpRequestValues.Builder.createRequestValues(HttpMethod httpMethod, URISE uri, UriBuilderFactory uriBuilderFactory, StringSE uriTemplate, MapSE<StringSE, StringSE> uriVars, HttpHeaders headers, MultiValueMap<StringSE, StringSE> cookies, MapSE<StringSE, ObjectSE> attributes, ObjectSE bodyValue) HttpRequestValues.Builderに渡された値からHttpRequestValuesを作成します。protected ReactiveHttpRequestValuesReactiveHttpRequestValues.Builder.createRequestValues(HttpMethod httpMethod, URISE uri, UriBuilderFactory uriBuilderFactory, StringSE uriTemplate, MapSE<StringSE, StringSE> uriVars, HttpHeaders headers, MultiValueMap<StringSE, StringSE> cookies, MapSE<StringSE, ObjectSE> attributes, ObjectSE bodyValue) HttpRequestValues.Builder.setHttpMethod(HttpMethod httpMethod) リクエストの HTTP メソッドを設定します。ReactiveHttpRequestValues.Builder.setHttpMethod(HttpMethod httpMethod) 型 HttpMethod のパラメーターを持つ org.springframework.web.service.invoker のコンストラクター修飾子コンストラクター説明protectedHttpRequestValues(HttpMethod httpMethod, URISE uri, UriBuilderFactory uriBuilderFactory, StringSE uriTemplate, MapSE<StringSE, StringSE> uriVariables, HttpHeaders headers, MultiValueMap<StringSE, StringSE> cookies, MapSE<StringSE, ObjectSE> attributes, ObjectSE bodyValue) HttpRequestValuesを構築します。org.springframework.web.servlet.function 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.web.servlet.function のメソッド修飾子と型メソッド説明EntityResponse.Builder.allow(HttpMethod... allowedMethods) Allowヘッダーの指定に従って、許可されたHTTP methodsのセットを設定します。ServerResponse.HeadersBuilder.allow(HttpMethod... allowedMethods) Allowヘッダーの指定に従って、許可されたHTTP methodsのセットを設定します。static RequestPredicateRequestPredicates.method(HttpMethod httpMethod) リクエストの HTTP メソッドが指定されたメソッドと等しい場合に一致するRequestPredicateを返します。ServerRequest.Builder.method(HttpMethod method) リクエストのメソッドを設定します。static RequestPredicateRequestPredicates.methods(HttpMethod... httpMethods) リクエストの HTTP メソッドが指定されたメソッドの 1 つと等しい場合に一致するRequestPredicateを返します。型 HttpMethod の型引数を持つ org.springframework.web.servlet.function のメソッドパラメーター修飾子と型メソッド説明EntityResponse.Builder.allow(SetSE<HttpMethod> allowedMethods) Allowヘッダーの指定に従って、許可されたHTTP methodsのセットを設定します。ServerResponse.HeadersBuilder.allow(SetSE<HttpMethod> allowedMethods) Allowヘッダーの指定に従って、許可されたHTTP methodsのセットを設定します。voidRequestPredicates.Visitor.method(SetSE<HttpMethod> methods) HTTP メソッド述語の通知を受け取ります。org.springframework.web.servlet.resource 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.web.servlet.resource のコンストラクターorg.springframework.web.socket.sockjs.support 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.web.socket.sockjs.support のメソッド修飾子と型メソッド説明protected booleanAbstractSockJsService.checkOrigin(ServerHttpRequest request, ServerHttpResponse response, HttpMethod... httpMethods) protected voidAbstractSockJsService.sendMethodNotAllowed(ServerHttpResponse response, HttpMethod... httpMethods) org.springframework.web.socket.sockjs.transport 内の HttpMethod 使用
RestTemplate.doExecute(URI, String, HttpMethod, RequestCallback, ResponseExtractor)を推奨