クラスの使用
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 を使用した RestTestClient を介した 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 MVC のアノテーションベースのセットアップ。
Spring のサーブレット環境用の関数 Web フレームワークを構成する型を提供します。
カスタム実装の抽象基本クラスを含む、標準の HandlerMapping 実装を提供します。
静的リソースを提供するためのサポートクラス。
AbstractSockJsService 実装を含む SockJS のサポートクラス。 受信リクエストを処理するための
TransportHandler 実装、さまざまなトランスポートを介してメッセージを送信するための session の実装、および DefaultSockJsService を含む SockJS トランスポートのサーバー側サポート。org.springframework.http 内の HttpMethod 使用
HttpMethod 型の型引数を持つインターフェースを実装する org.springframework.http のクラス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, @Nullable 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(@Nullable 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(@Nullable T body, @Nullable HttpHeaders headers, @Nullable HttpMethod method, @Nullable URISE url, @Nullable TypeSE type) メソッド、URL、ヘッダー、ボディ、型を持つコンストラクター。RequestEntity(@Nullable T body, @Nullable HttpHeaders headers, @Nullable HttpMethod method, URISE url) メソッド、URL、ヘッダー、本文を含むコンストラクター。RequestEntity(@Nullable T body, HttpMethod method, URISE url) メソッド、URL、ボディはあるがヘッダーはないコンストラクター。RequestEntity(@Nullable T body, HttpMethod method, URISE url, TypeSE type) メソッド、URL、ボディ、型はあるがヘッダーはないコンストラクター。RequestEntity(@Nullable T body, @Nullable MultiValueMap<StringSE, StringSE> headers, @Nullable HttpMethod method, @Nullable URISE url, @Nullable TypeSE type) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。RequestEntity(@Nullable T body, @Nullable MultiValueMap<StringSE, StringSE> headers, @Nullable HttpMethod method, URISE url) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。RequestEntity(HttpHeaders headers, HttpMethod method, URISE url) メソッド、URL、ヘッダーはあるが本文はないコンストラクター。RequestEntity(HttpMethod method, URISE url) メソッドと URL はあるが、本文もヘッダーもないコンストラクター。RequestEntity(MultiValueMap<StringSE, StringSE> headers, HttpMethod method, URISE url) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。org.springframework.http.client 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.http.client のメソッド修飾子と型メソッド説明protected @Nullable 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) 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 のコンストラクターパラメーター HttpMethod修飾子コンストラクター説明BufferingClientHttpRequestFactory(ClientHttpRequestFactory requestFactory, @Nullable BiPredicateSE<URISE, HttpMethod> bufferingPredicate) レスポンスをバッファリングするかどうかを決定するための追加の述語を持つコンストラクターバリアント。InterceptingClientHttpRequestFactory(ClientHttpRequestFactory requestFactory, @Nullable ListSE<ClientHttpRequestInterceptor> interceptors, @Nullable BiPredicateSE<URISE, HttpMethod> bufferingPredicate) レスポンスをバッファリングするかどうかを決定するための追加の述語を持つコンストラクターバリアント。org.springframework.http.client.reactive 内の HttpMethod 使用
修飾子と型メソッド説明ClientHttpRequest.getMethod()リクエストの HTTP メソッドを返します。ClientHttpRequestDecorator.getMethod()型 HttpMethod のパラメーターを持つ org.springframework.http.client.reactive のメソッド修飾子と型メソッド説明ClientHttpConnector.connect(HttpMethod method, URISE uri, FunctionSE<? super ClientHttpRequest, Mono<VoidSE>> requestCallback) 指定されたHttpMethodとURIを使用してオリジンサーバーに接続し、基になる API の HTTP リクエストを初期化して書き込むことができるときに指定されたrequestCallbackを適用します。HttpComponentsClientHttpConnector.connect(HttpMethod method, URISE uri, FunctionSE<? super ClientHttpRequest, Mono<VoidSE>> requestCallback) JdkClientHttpConnector.connect(HttpMethod method, URISE uri, FunctionSE<? super ClientHttpRequest, Mono<VoidSE>> requestCallback) JettyClientHttpConnector.connect(HttpMethod method, URISE uri, FunctionSE<? super ClientHttpRequest, Mono<VoidSE>> requestCallback) ReactorClientHttpConnector.connect(HttpMethod method, URISE uri, FunctionSE<? super ClientHttpRequest, 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 のメソッド修飾子と型メソッド説明HttpAccessor.getBufferingPredicate()リクエストとレスポンスのコンテンツをバッファリングするかどうかを決定するために、configured述語を返します。型 HttpMethod のパラメーターを持つ org.springframework.http.client.support のメソッド修飾子と型メソッド説明protected ClientHttpRequestHttpAccessor.createRequest(URISE url, HttpMethod method) このテンプレートのClientHttpRequestFactoryを介して新しいClientHttpRequestを作成します。型 HttpMethod の型引数を持つ org.springframework.http.client.support のメソッドパラメーター修飾子と型メソッド説明voidHttpAccessor.setBufferingPredicate(@Nullable BiPredicateSE<URISE, HttpMethod> predicate) リクエストとレスポンスのバッファリングを有効にし、送信前にすべてのコンテンツを集約し、レスポンス本文を繰り返し読み取ることができるようにします。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, @Nullable StringSE contextPath, HttpHeaders 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, @Nullable 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 のメソッド修飾子と型メソッド説明MockMvcClientHttpRequestFactory.createRequest(URISE uri, HttpMethod httpMethod) 使用すべきではありません。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 のメソッド修飾子と型メソッド説明HttpHandlerConnector.connect(HttpMethod httpMethod, URISE uri, FunctionSE<? super ClientHttpRequest, 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 のメソッド修飾子と型メソッド説明MockMvcHttpConnector.connect(HttpMethod method, URISE uri, FunctionSE<? super ClientHttpRequest, Mono<VoidSE>> requestCallback) MockMvcClientHttpRequestFactory.createRequest(URISE uri, HttpMethod httpMethod) RestTestClient.method(HttpMethod method) 指定されたHttpMethodのリクエストを準備します。org.springframework.test.web.servlet.request 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.test.web.servlet.request のメソッド修飾子と型メソッド説明MockMvcRequestBuilders.multipart(HttpMethod httpMethod, StringSE uriTemplate, @Nullable ObjectSE... uriVariables) HttpMethodも受け入れるMockMvcRequestBuilders.multipart(String, Object...)のバリアント。MockMvcRequestBuilders.multipart(HttpMethod httpMethod, URISE uri) MockMvcRequestBuilders.request(HttpMethod method, StringSE uriTemplate, @Nullable 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(@Nullable MediaType contentType, ListSE<MediaType> mediaTypes, @Nullable HttpMethod httpMethod) 新しい HttpMediaTypeNotSupportedException を作成します。HttpMediaTypeNotSupportedException(@Nullable MediaType contentType, ListSE<MediaType> supportedMediaTypes, @Nullable HttpMethod httpMethod, StringSE message) 新しい HttpMediaTypeNotSupportedException を作成します。org.springframework.web.bind.annotation 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.web.bind.annotation のメソッド修飾子と型メソッド説明static @Nullable RequestMethodRequestMethod.resolve(HttpMethod httpMethod) 指定されたHttpMethodをRequestMethod列挙値に解決します。org.springframework.web.client 内の HttpMethod 使用
型 HttpMethod の引数を持つ型を返す org.springframework.web.client のメソッド修飾子と型メソッド説明RestOperations.optionsForAllow(StringSE url, @Nullable ObjectSE... uriVariables) 指定された URI のAllowヘッダーの値を返します。RestOperations.optionsForAllow(StringSE url, MapSE<StringSE, ? extends @Nullable ObjectSE> uriVariables) 指定された URI のAllowヘッダーの値を返します。RestOperations.optionsForAllow(URISE url) 指定された URL のAllowヘッダーの値を返します。RestTemplate.optionsForAllow(StringSE url, @Nullable ObjectSE... uriVariables) RestTemplate.optionsForAllow(StringSE url, MapSE<StringSE, ? extends @Nullable ObjectSE> uriVariables) RestTemplate.optionsForAllow(URISE url) 型 HttpMethod のパラメーターを持つ org.springframework.web.client のメソッド修飾子と型メソッド説明protected <T> @Nullable TRestTemplate.doExecute(URISE url, @Nullable StringSE uriTemplate, @Nullable HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor) 指定された URI で指定されたメソッドを実行します。<T> ResponseEntity<T> RestOperations.exchange(StringSE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ClassSE<T> responseType, @Nullable ObjectSE... uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスをResponseEntityとして返します。<T> ResponseEntity<T> RestOperations.exchange(StringSE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ClassSE<T> responseType, MapSE<StringSE, ? extends @Nullable ObjectSE> uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスをResponseEntityとして返します。<T> ResponseEntity<T> RestOperations.exchange(StringSE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, @Nullable ObjectSE... uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスをResponseEntityとして返します。<T> ResponseEntity<T> RestOperations.exchange(StringSE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, MapSE<StringSE, ? extends @Nullable ObjectSE> uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスをResponseEntityとして返します。<T> ResponseEntity<T> RestOperations.exchange(URISE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ClassSE<T> responseType) 指定された URI テンプレートに対して HTTP メソッドを実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスをResponseEntityとして返します。<T> ResponseEntity<T> RestOperations.exchange(URISE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) 指定された URI テンプレートに対して HTTP メソッドを実行し、指定されたリクエストエンティティをリクエストに書き込み、レスポンスをResponseEntityとして返します。<T> ResponseEntity<T> RestTemplate.exchange(StringSE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ClassSE<T> responseType, @Nullable ObjectSE... uriVariables) <T> ResponseEntity<T> RestTemplate.exchange(StringSE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ClassSE<T> responseType, MapSE<StringSE, ? extends @Nullable ObjectSE> uriVariables) <T> ResponseEntity<T> RestTemplate.exchange(StringSE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, @Nullable ObjectSE... uriVariables) <T> ResponseEntity<T> RestTemplate.exchange(StringSE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType, MapSE<StringSE, ? extends @Nullable ObjectSE> uriVariables) <T> ResponseEntity<T> RestTemplate.exchange(URISE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ClassSE<T> responseType) <T> ResponseEntity<T> RestTemplate.exchange(URISE url, HttpMethod method, @Nullable HttpEntity<?> requestEntity, ParameterizedTypeReference<T> responseType) <T> @Nullable TRestOperations.execute(StringSE uriTemplate, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor, @Nullable ObjectSE... uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、RequestCallbackを使用してリクエストを準備し、ResponseExtractorを使用してレスポンスを読み取ります。<T> @Nullable TRestOperations.execute(StringSE uriTemplate, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor, MapSE<StringSE, ? extends @Nullable ObjectSE> uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、RequestCallbackを使用してリクエストを準備し、ResponseExtractorを使用してレスポンスを読み取ります。<T> @Nullable TRestOperations.execute(URISE url, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor) 指定された URL に対して HTTP メソッドを実行し、RequestCallbackを使用してリクエストを準備し、ResponseExtractorを使用してレスポンスを読み取ります。<T> @Nullable TRestTemplate.execute(StringSE uriTemplate, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor, @Nullable ObjectSE... uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、RequestCallbackを使用してリクエストを準備し、ResponseExtractorを使用してレスポンスを読み取ります。<T> @Nullable TRestTemplate.execute(StringSE uriTemplate, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor, MapSE<StringSE, ? extends @Nullable ObjectSE> uriVariables) 指定された URI テンプレートに対して HTTP メソッドを実行し、RequestCallbackを使用してリクエストを準備し、ResponseExtractorを使用してレスポンスを読み取ります。<T> @Nullable TRestTemplate.execute(URISE url, HttpMethod method, @Nullable RequestCallback requestCallback, @Nullable ResponseExtractor<T> responseExtractor) 指定された URL に対して HTTP メソッドを実行し、RequestCallbackを使用してリクエストを準備し、ResponseExtractorを使用してレスポンスを読み取ります。voidDefaultResponseErrorHandler.handleError(URISE url, HttpMethod method, ClientHttpResponse response) 指定された解決済みのステータスコードと、リクエスト URL および HTTP メソッドへのアクセスを提供する追加情報を使用して、指定されたレスポンス内のエラーを処理します。protected voidDefaultResponseErrorHandler.handleError(ClientHttpResponse response, HttpStatusCode statusCode, @Nullable URISE url, @Nullable HttpMethod method) 解決されたステータスコードに基づいてエラーを処理します。protected voidExtractingResponseErrorHandler.handleError(ClientHttpResponse response, HttpStatusCode statusCode, @Nullable URISE url, @Nullable 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のリクエストの構築を開始します。型 HttpMethod の型引数を持つ org.springframework.web.client のメソッドパラメーター修飾子と型メソッド説明RestClient.Builder.bufferContent(BiPredicateSE<URISE, HttpMethod> predicate) リクエストとレスポンスのバッファリングを有効にし、送信前にすべてのコンテンツを集約し、レスポンス本文を繰り返し読み取ることができるようにします。org.springframework.web.context.request 内の HttpMethod 使用
org.springframework.web.cors 内の HttpMethod 使用
型 HttpMethod の引数を持つ型を返す org.springframework.web.cors のメソッド修飾子と型メソッド説明CorsConfiguration.checkHttpMethod(@Nullable HttpMethod requestMethod) HTTP リクエストメソッド(またはプリフライトリクエストのAccess-Control-Request-Methodヘッダーのメソッド)を、構成された許可されたメソッドと照合します。protected @Nullable ListSE<HttpMethod> DefaultCorsProcessor.checkMethods(CorsConfiguration config, @Nullable HttpMethod requestMethod) HTTP メソッドを確認し、プリフライトリクエストのレスポンスのメソッドを決定します。型 HttpMethod のパラメーターを持つ org.springframework.web.cors のメソッド修飾子と型メソッド説明voidCorsConfiguration.addAllowedMethod(HttpMethod method) 許可されたメソッドを一度に 1 つずつ追加するためのCorsConfiguration.setAllowedMethods(List)のバリアント。CorsConfiguration.checkHttpMethod(@Nullable HttpMethod requestMethod) HTTP リクエストメソッド(またはプリフライトリクエストのAccess-Control-Request-Methodヘッダーのメソッド)を、構成された許可されたメソッドと照合します。protected @Nullable ListSE<HttpMethod> DefaultCorsProcessor.checkMethods(CorsConfiguration config, @Nullable HttpMethod requestMethod) HTTP メソッドを確認し、プリフライトリクエストのレスポンスのメソッドを決定します。org.springframework.web.cors.reactive 内の HttpMethod 使用
型 HttpMethod の引数を持つ型を返す org.springframework.web.cors.reactive のメソッド修飾子と型メソッド説明protected @Nullable ListSE<HttpMethod> DefaultCorsProcessor.checkMethods(CorsConfiguration config, @Nullable HttpMethod requestMethod) HTTP メソッドを確認し、プリフライトリクエストのレスポンスのメソッドを決定します。型 HttpMethod のパラメーターを持つ org.springframework.web.cors.reactive のメソッド修飾子と型メソッド説明protected @Nullable ListSE<HttpMethod> DefaultCorsProcessor.checkMethods(CorsConfiguration config, @Nullable 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) リクエストのメソッドを設定します。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(@Nullable MediaType contentType, ListSE<MediaType> supportedTypes, @Nullable ResolvableType bodyType, @Nullable HttpMethod method) 特定の Java 型からエンコードまたはデコードしようとする場合のコンストラクター。UnsupportedMediaTypeStatusException(@Nullable MediaType contentType, ListSE<MediaType> supportedTypes, @Nullable HttpMethod method) HTTP メソッドを提供するコンストラクター。型の型引数を持つ org.springframework.web.server のコンストラクターパラメーター HttpMethod修飾子コンストラクター説明MethodNotAllowedException(StringSE method, @Nullable 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(@Nullable HttpMethod httpMethod, @Nullable URISE uri, @Nullable UriBuilderFactory uriBuilderFactory, @Nullable StringSE uriTemplate, MapSE<StringSE, StringSE> uriVars, HttpHeaders headers, MultiValueMap<StringSE, StringSE> cookies, @Nullable ObjectSE version, MapSE<StringSE, ObjectSE> attributes, @Nullable ObjectSE bodyValue, @Nullable ParameterizedTypeReference<?> bodyValueType) HttpRequestValues.Builderに渡された値からHttpRequestValuesを作成します。protected ReactiveHttpRequestValuesReactiveHttpRequestValues.Builder.createRequestValues(@Nullable HttpMethod httpMethod, @Nullable URISE uri, @Nullable UriBuilderFactory uriBuilderFactory, @Nullable StringSE uriTemplate, MapSE<StringSE, StringSE> uriVars, HttpHeaders headers, MultiValueMap<StringSE, StringSE> cookies, @Nullable ObjectSE version, MapSE<StringSE, ObjectSE> attributes, @Nullable ObjectSE bodyValue, @Nullable ParameterizedTypeReference<?> bodyValueType) HttpRequestValues.Builder.setHttpMethod(HttpMethod httpMethod) リクエストの HTTP メソッドを設定します。ReactiveHttpRequestValues.Builder.setHttpMethod(HttpMethod httpMethod) 型 HttpMethod のパラメーターを持つ org.springframework.web.service.invoker のコンストラクター修飾子コンストラクター説明protectedHttpRequestValues(@Nullable HttpMethod httpMethod, @Nullable URISE uri, @Nullable UriBuilderFactory uriBuilderFactory, @Nullable StringSE uriTemplate, MapSE<StringSE, StringSE> uriVariables, HttpHeaders headers, MultiValueMap<StringSE, StringSE> cookies, @Nullable ObjectSE version, MapSE<StringSE, ObjectSE> attributes, @Nullable ObjectSE bodyValue, @Nullable ParameterizedTypeReference<?> bodyValueType) HttpRequestValuesを構築します。org.springframework.web.servlet.config.annotation 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.web.servlet.config.annotation のメソッド修飾子と型メソッド説明InterceptorRegistration.excludeHttpMethods(HttpMethod... httpMethods) インターセプターを除外する必要があるリクエストの HTTP メソッドを追加します。InterceptorRegistration.includeHttpMethods(HttpMethod... httpMethods) インターセプターを含める必要があるリクエストの HTTP メソッドを追加します。型 HttpMethod の型引数を持つ org.springframework.web.servlet.config.annotation のメソッドパラメーター修飾子と型メソッド説明InterceptorRegistration.excludeHttpMethods(ListSE<HttpMethod> httpMethods) InterceptorRegistration.excludeHttpMethods(HttpMethod...)のリストベースのバリアント。InterceptorRegistration.includeHttpMethods(ListSE<HttpMethod> httpMethods) InterceptorRegistration.includeHttpMethods(HttpMethod...)のリストベースのバリアント。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.handler 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.web.servlet.handler のコンストラクター修飾子コンストラクター説明MappedInterceptor(StringSE @Nullable [] includePatterns, StringSE @Nullable [] excludePatterns, HttpMethod @Nullable [] includeHttpMethods, HttpMethod @Nullable [] excludeHttpMethods, HandlerInterceptor interceptor, @Nullable PathPatternParser parser) 指定された包含パターンと除外パターンおよび HTTP メソッドを使用してインスタンスを作成します。org.springframework.web.servlet.resource 内の HttpMethod 使用
型 HttpMethod のパラメーターを持つ org.springframework.web.servlet.resource のコンストラクター修飾子コンストラクター説明NoResourceFoundException(HttpMethod httpMethod, StringSE requestUri, StringSE resourcePath) インスタンスの作成。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 使用
RequestEntity(Object, HttpHeaders, HttpMethod, URI, Type)を推奨