クラスの使用
org.springframework.http.HttpHeaders
HttpHeaders を使用するパッケージ
パッケージ
説明
クライアント / サーバー側 HTTP の基本的な抽象化が含まれています。
クライアント側の HTTP 上の抽象化が含まれています。
このパッケージは、RestTemplate などの高レベルクラスで使用される汎用 HTTP サポートクラスを提供します。
マルチパートのサポート。
HttpMessageConverter 抽象化を提供して、Java オブジェクトと HTTP 入出力メッセージ間で変換します。
JSON を処理するための HttpMessageConverter 実装を提供します。
XML を処理するための HttpMessageConverter 実装を提供します。
サーバー側の HTTP 上の抽象化が含まれています。
クライアント / サーバー側の HTTP 抽象化のモック実装。
リアクティブ HTTP クライアント契約のモック実装。
リアクティブ HTTP サーバー契約のモック実装。
Spring の Web MVC フレームワークでの使用を対象とした、サーブレット API 6.0 モックオブジェクトの包括的なセット。
関数 Web フレームワークのモックオブジェクト。
HTTP 概念のサポートをテストします。
ビルトイン
ResponseCreator 実装が含まれています。WebTestClient を介した Spring WebFlux サーバーエンドポイントのテストのサポート。 サーバーリクエスト処理のための
MockMvc を使用した RestTestClient を介した Spring MVC アプリケーションのテストのサポート。 ビルトイン
RequestBuilder 実装が含まれています。 ビルトイン
ResultMatcher および ResultHandler 実装が含まれています。Web アプリケーションをテストするためのサポートクラス。
Spring の Web インフラストラクチャと他のフレームワークモジュール間の最小境界点を定義する一般的な汎用インターフェース。
クライアント側の Web サポートのコアパッケージ。
org.springframework.web.client パッケージをサポートするクラス。 ファイルのアップロードを処理するためのマルチパート解決フレームワーク。
マルチパート解決フレームワークのサポートクラス。
org.springframework.http.client.reactive リアクティブ HTTP アダプター層上に構築されるリアクティブ WebClient を提供します。org.springframework.web.reactive.function.client パッケージをサポートするクラス。Spring のリアクティブ環境用の関数 Web フレームワークを構成する型を提供します。
org.springframework.web.reactive.function.server パッケージをサポートするクラス。 静的リソースを提供するためのサポートクラス。
アノテーションベースのハンドラーメソッド処理のインフラストラクチャ。
ビューの解決による結果処理のサポート。
リアクティブ WebSocket 相互作用の抽象化とサポートクラス。
WebSocket 相互作用のクライアントサポート。
Spring の一般的なリアクティブ Web サポートのコアインターフェースとクラス。
HttpExchange メソッドでアノテーションが付けられた HTTP サービスのクライアントプロキシを作成するためのサポート。 アプリケーションコンテキストインフラストラクチャと統合するサーブレット、および Spring Web MVC フレームワークのコアインターフェースとクラスを提供します。
Spring のサーブレット環境用の関数 Web フレームワークを構成する型を提供します。
org.springframework.web.method.annotation パッケージに基づいた、アノテーションベースのハンドラーメソッド処理のための MVC インフラストラクチャ。 静的リソースを提供するためのサポートクラス。
カスタム実装の抽象基本クラスを含む、標準の View および ViewResolver 実装を提供します。
WebSocket アプリケーションの一般的な抽象化と Spring 構成のサポート。
Jetty WebSocket API のアダプタークラス。
標準 Jakarta WebSocket API のアダプタークラス。
WebSocket アプリケーションのクライアント側の抽象化。
標準の Jakarta WebSocket エンドポイントで使用するクライアント側クラス。
便利な
WebSocketHandler 実装とデコレーター。WebSocketClient の SockJS クライアント実装。WebSocketSession の SockJS 固有の実装。HTML エスケープや Cookie 処理などのその他の Web ユーティリティクラス。
org.springframework.http 内の HttpHeaders 使用
HttpHeaders として宣言されている org.springframework.http のフィールドHttpHeaders を返す org.springframework.http のメソッド修飾子と型メソッド説明static HttpHeadersHttpHeaders.copyOf(HttpHeaders httpHeaders) 新しい変更可能なHttpHeadersインスタンスを作成し、指定されたヘッダーをその新しいインスタンスにコピーします。static HttpHeadersHttpHeaders.copyOf(MultiValueMap<StringSE, StringSE> headers) 新しい変更可能なHttpHeadersインスタンスを作成し、指定されたヘッダーをその新しいインスタンスにコピーします。HttpEntity.getHeaders()このエンティティのヘッダーを返します。HttpMessage.getHeaders()このメッセージのヘッダーを返します。static HttpHeadersHttpHeaders.readOnlyHttpHeaders(HttpHeaders headers) 必要に応じて、指定されたヘッダーの周囲に読み取り専用のHttpHeadersラッパーを適用します。static HttpHeadersHttpHeaders.readOnlyHttpHeaders(MultiValueMap<StringSE, StringSE> headers) 必要に応じて、指定されたヘッダーの周囲に読み取り専用のHttpHeadersラッパーを適用します。型 HttpHeaders のパラメーターを持つ org.springframework.http のメソッド修飾子と型メソッド説明voidHttpHeaders.addAll(HttpHeaders headers) 指定されたHttpHeadersのすべての名前と値のペアを追加します。static HttpHeadersHttpHeaders.copyOf(HttpHeaders httpHeaders) 新しい変更可能なHttpHeadersインスタンスを作成し、指定されたヘッダーをその新しいインスタンスにコピーします。RequestEntity.HeadersBuilder.headers(@Nullable HttpHeaders headers) 指定されたヘッダーをエンティティのヘッダーマップにコピーします。ResponseEntity.HeadersBuilder.headers(@Nullable HttpHeaders headers) 指定されたヘッダーをエンティティのヘッダーマップにコピーします。voidHttpHeaders.putAll(HttpHeaders headers) 指定された HttpHeaders のすべてのエントリをこの HttpHeaders に格納します。static HttpHeadersHttpHeaders.readOnlyHttpHeaders(HttpHeaders headers) 必要に応じて、指定されたヘッダーの周囲に読み取り専用のHttpHeadersラッパーを適用します。型 HttpHeaders の型引数を持つ org.springframework.http のメソッドパラメーター修飾子と型メソッド説明RequestEntity.HeadersBuilder.headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでこのエンティティのヘッダーを操作します。ResponseEntity.HeadersBuilder.headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでこのエンティティのヘッダーを操作します。型 HttpHeaders のパラメーターを持つ org.springframework.http のコンストラクター修飾子コンストラクター説明HttpEntity(@Nullable T body, @Nullable HttpHeaders headers) 指定されたボディとヘッダーで新しいHttpEntityを作成します。HttpEntity(HttpHeaders headers) 与えられたヘッダーを持ち、本文を持たない新しいHttpEntityを作成します。HttpHeaders(HttpHeaders httpHeaders) 提供されたHttpHeadersを基にして新しいHttpHeadersインスタンスを構築します。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(HttpHeaders headers, HttpMethod method, URISE url) メソッド、URL、ヘッダーはあるが本文はないコンストラクター。ResponseEntity(@Nullable T body, @Nullable HttpHeaders headers, int rawStatus) 本文、ヘッダー、生のステータスコードを使用してResponseEntityを作成します。ResponseEntity(@Nullable T body, @Nullable HttpHeaders headers, HttpStatusCode statusCode) 本文、ヘッダー、ステータスコードを使用してResponseEntityを作成します。ResponseEntity(HttpHeaders headers, HttpStatusCode status) ヘッダーとステータスコードを使用してResponseEntityを作成します。org.springframework.http.client 内の HttpHeaders 使用
HttpHeaders を返す org.springframework.http.client のメソッド型 HttpHeaders のパラメーターを持つ org.springframework.http.client のメソッド修飾子と型メソッド説明protected final ClientHttpResponseAbstractBufferingClientHttpRequest.executeInternal(HttpHeaders headers) protected abstract ClientHttpResponseAbstractBufferingClientHttpRequest.executeInternal(HttpHeaders headers, byte[] bufferedOutput) 指定されたヘッダーとコンテンツを HTTP リクエストに書き込む抽象テンプレートメソッド。protected abstract ClientHttpResponseAbstractClientHttpRequest.executeInternal(HttpHeaders headers) 指定されたヘッダーとコンテンツを HTTP リクエストに書き込む抽象テンプレートメソッド。protected final ClientHttpResponseAbstractStreamingClientHttpRequest.executeInternal(HttpHeaders headers) protected abstract ClientHttpResponseAbstractStreamingClientHttpRequest.executeInternal(HttpHeaders headers, @Nullable StreamingHttpOutputMessage.Body body) HTTP リクエストにヘッダーとStreamingHttpOutputMessage.Bodyを書き込むための、具体的な実装のための抽象メソッド。protected final OutputStreamSEAbstractBufferingClientHttpRequest.getBodyInternal(HttpHeaders headers) protected abstract OutputStreamSEAbstractClientHttpRequest.getBodyInternal(HttpHeaders headers) 本文を返す抽象テンプレートメソッド。protected final OutputStreamSEAbstractStreamingClientHttpRequest.getBodyInternal(HttpHeaders headers) リクエスト本文の内容に関して、HttpOutputMessage契約を実装します。型 HttpHeaders の型引数を持つ org.springframework.http.client のメソッドパラメーター修飾子と型メソッド説明MultipartBodyBuilder.PartBuilder.headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーを介してパーツヘッダーを操作します。org.springframework.http.client.reactive 内の HttpHeaders 使用
修飾子と型メソッド説明AbstractClientHttpRequest.getHeaders()AbstractClientHttpResponse.getHeaders()ClientHttpRequestDecorator.getHeaders()ClientHttpResponseDecorator.getHeaders()protected HttpHeadersAbstractClientHttpRequest.initReadOnlyHeaders()リクエストがコミットされた後、読み取り専用ヘッダーを初期化します。型 HttpHeaders のパラメーターを持つ org.springframework.http.client.reactive のコンストラクター修飾子コンストラクター説明AbstractClientHttpRequest(HttpHeaders headers) protectedAbstractClientHttpResponse(HttpStatusCode statusCode, HttpHeaders headers, MultiValueMap<StringSE, ResponseCookie> cookies, Flux<DataBuffer> body) org.springframework.http.client.support 内の HttpHeaders 使用
org.springframework.http.codec.multipart 内の HttpHeaders 使用
型 HttpHeaders のパラメーターを持つ org.springframework.http.codec.multipart のメソッド修飾子と型メソッド説明protected Mono<DataBuffer> MultipartWriterSupport.generatePartHeaders(HttpHeaders headers, DataBufferFactory bufferFactory) 型 HttpHeaders の型引数を持つ org.springframework.http.codec.multipart のメソッドパラメーター修飾子と型メソッド説明static Flux<FilePartEvent> FilePartEvent.create(StringSE partName, StringSE filename, MediaType contentType, Flux<DataBuffer> contents, @Nullable ConsumerSE<HttpHeaders> headersConsumer) 指定された name、FilePartEvent.filename()、content-type、および content に基づいて、FilePartEventオブジェクトのストリームを作成します。static Flux<FilePartEvent> FilePartEvent.create(StringSE name, PathSE path, @Nullable ConsumerSE<HttpHeaders> headersConsumer) 指定された名前とファイルパスに基づいて、FilePartEventオブジェクトのストリームを作成します。static Flux<FilePartEvent> FilePartEvent.create(StringSE name, Resource resource, @Nullable ConsumerSE<HttpHeaders> headersConsumer) 指定された名前とリソースに基づいて、FilePartEventオブジェクトのストリームを作成します。static Mono<FormPartEvent> FormPartEvent.create(StringSE name, StringSE value, @Nullable ConsumerSE<HttpHeaders> headersConsumer) org.springframework.http.converter 内の HttpHeaders 使用
型 HttpHeaders のパラメーターを持つ org.springframework.http.converter のメソッド修飾子と型メソッド説明protected voidAbstractHttpMessageConverter.addDefaultHeaders(HttpHeaders headers, T t, @Nullable MediaType contentType) 出力メッセージにデフォルトのヘッダーを追加します。protected voidStringHttpMessageConverter.addDefaultHeaders(HttpHeaders headers, StringSE s, @Nullable MediaType type) org.springframework.http.converter.json 内の HttpHeaders 使用
型 HttpHeaders のパラメーターを持つ org.springframework.http.converter.json のコンストラクター修飾子コンストラクター説明MappingJacksonInputMessage(InputStreamSE body, HttpHeaders headers) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。MappingJacksonInputMessage(InputStreamSE body, HttpHeaders headers, ClassSE<?> deserializationView) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。org.springframework.http.converter.xml 内の HttpHeaders 使用
型 HttpHeaders のパラメーターを持つ org.springframework.http.converter.xml のメソッド修飾子と型メソッド説明AbstractJaxb2HttpMessageConverter.detectCharset(HttpHeaders httpHeaders) 指定されたHttpHeaders.getContentType()から文字セットを検出します。protected abstract TAbstractXmlHttpMessageConverter.readFromSource(ClassSE<? extends T> clazz, HttpHeaders headers, SourceSE source) AbstractHttpMessageConverter.read(Class, HttpInputMessage)から呼び出される抽象テンプレートメソッド。protected TJaxb2CollectionHttpMessageConverter.readFromSource(ClassSE<? extends T> clazz, HttpHeaders headers, SourceSE source) protected ObjectSEJaxb2RootElementHttpMessageConverter.readFromSource(ClassSE<?> clazz, HttpHeaders headers, SourceSE source) protected ObjectSEMarshallingHttpMessageConverter.readFromSource(ClassSE<?> clazz, HttpHeaders headers, SourceSE source) protected abstract voidAbstractXmlHttpMessageConverter.writeToResult(T t, HttpHeaders headers, ResultSE result) AbstractXmlHttpMessageConverter.writeInternal(Object, HttpOutputMessage)から呼び出される抽象テンプレートメソッド。protected voidJaxb2CollectionHttpMessageConverter.writeToResult(T t, HttpHeaders headers, ResultSE result) protected voidJaxb2RootElementHttpMessageConverter.writeToResult(ObjectSE value, HttpHeaders headers, ResultSE result) protected voidMarshallingHttpMessageConverter.writeToResult(ObjectSE o, HttpHeaders headers, ResultSE result) org.springframework.http.server 内の HttpHeaders 使用
HttpHeaders を返す org.springframework.http.server のメソッド修飾子と型メソッド説明DelegatingServerHttpResponse.getHeaders()ServletServerHttpRequest.getHeaders()ServletServerHttpResponse.getHeaders()org.springframework.http.server.reactive 内の HttpHeaders 使用
修飾子と型メソッド説明AbstractServerHttpRequest.getHeaders()AbstractServerHttpResponse.getHeaders()ServerHttpRequestDecorator.getHeaders()ServerHttpResponseDecorator.getHeaders()型 HttpHeaders の型引数を持つ org.springframework.http.server.reactive のメソッドパラメーター修飾子と型メソッド説明ServerHttpRequest.Builder.headers(ConsumerSE<HttpHeaders> headersConsumer) リクエストヘッダーを操作します。型 HttpHeaders のパラメーターを持つ org.springframework.http.server.reactive のコンストラクター修飾子コンストラクター説明AbstractListenerServerHttpResponse(DataBufferFactory bufferFactory, HttpHeaders headers) AbstractServerHttpRequest(HttpMethod method, URISE uri, @Nullable StringSE contextPath, HttpHeaders headers) リクエストのメソッド、URI、ヘッダーを持つコンストラクター。AbstractServerHttpResponse(DataBufferFactory dataBufferFactory, HttpHeaders headers) org.springframework.mock.http 内の HttpHeaders 使用
HttpHeaders を返す org.springframework.mock.http のメソッドorg.springframework.mock.http.client.reactive 内の HttpHeaders 使用
org.springframework.mock.http.server.reactive 内の HttpHeaders 使用
型 HttpHeaders のパラメーターを持つ org.springframework.mock.http.server.reactive のメソッドorg.springframework.mock.web 内の HttpHeaders 使用
HttpHeaders を返す org.springframework.mock.web のメソッド修飾子と型メソッド説明final HttpHeadersMockPart.getHeaders()HttpHeadersバッキングヘッダー関連のアクセサーメソッドを返し、選択されたヘッダーエントリを設定できるようにします。MockMultipartHttpServletRequest.getMultipartHeaders(StringSE paramOrFileName) MockMultipartHttpServletRequest.getRequestHeaders()org.springframework.mock.web.reactive.function.server 内の HttpHeaders 使用
型 HttpHeaders のパラメーターを持つ org.springframework.mock.web.reactive.function.server のメソッドorg.springframework.test.http 内の HttpHeaders 使用
org.springframework.test.http 内の型引数 HttpHeaders を持つサブクラス型 HttpHeaders のパラメーターを持つ org.springframework.test.http のメソッド修飾子と型メソッド説明HttpHeadersAssert.hasSameSizeAs(HttpHeaders other) 実際のヘッダーの数が指定されたHttpHeadersと同じであることを確認します。型 HttpHeaders のパラメーターを持つ org.springframework.test.http のコンストラクターorg.springframework.test.web.client.response 内の HttpHeaders 使用
型 HttpHeaders のパラメーターを持つ org.springframework.test.web.client.response のメソッドorg.springframework.test.web.reactive.server 内の HttpHeaders 使用
修飾子と型メソッド説明ExchangeResult.getRequestHeaders()サーバーに送信されたリクエストヘッダーを返します。ExchangeResult.getResponseHeaders()サーバーから受信したレスポンスヘッダーを返します。protected HttpHeadersHeaderAssertions.getResponseHeaders()型 HttpHeaders の引数を持つ型を返す org.springframework.test.web.reactive.server のメソッド型 HttpHeaders の型引数を持つ org.springframework.test.web.reactive.server のメソッドパラメーター修飾子と型メソッド説明WebTestClient.Builder.defaultHeaders(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでデフォルトのヘッダーを操作します。WebTestClient.RequestHeadersSpec.headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでリクエストのヘッダーを操作します。org.springframework.test.web.servlet.client 内の HttpHeaders 使用
修飾子と型メソッド説明ExchangeResult.getRequestHeaders()サーバーに送信されたリクエストヘッダーを返します。ExchangeResult.getResponseHeaders()サーバーから受信したレスポンスヘッダーを返します。protected HttpHeadersHeaderAssertions.getResponseHeaders()型 HttpHeaders の引数を持つ型を返す org.springframework.test.web.servlet.client のメソッド型 HttpHeaders の型引数を持つ org.springframework.test.web.servlet.client のメソッドパラメーター修飾子と型メソッド説明<T extends B>
TRestTestClient.Builder.defaultHeaders(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでデフォルトのヘッダーを操作します。RestTestClient.RequestHeadersSpec.headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでリクエストのヘッダーを操作します。org.springframework.test.web.servlet.request 内の HttpHeaders 使用
型 HttpHeaders のパラメーターを持つ org.springframework.test.web.servlet.request のメソッド修飾子と型メソッド説明AbstractMockHttpServletRequestBuilder.headers(HttpHeaders httpHeaders) すべてのヘッダーをリクエストに追加します。型 HttpHeaders の型引数を持つ org.springframework.test.web.servlet.request のメソッドパラメーター修飾子と型メソッド説明AbstractMockHttpServletRequestBuilder.headers(ConsumerSE<HttpHeaders> headersConsumer) これまでに宣言されたすべてのヘッダーへのアクセスを提供し、値を追加、置換、削除できます。org.springframework.test.web.servlet.result 内の HttpHeaders 使用
修飾子と型メソッド説明protected final HttpHeadersPrintingResultHandler.getRequestHeaders(MockHttpServletRequest request) protected final HttpHeadersPrintingResultHandler.getResponseHeaders(MockHttpServletResponse response) org.springframework.test.web.support 内の HttpHeaders 使用
修飾子と型メソッド説明protected abstract HttpHeadersAbstractHeaderAssertions.getResponseHeaders()サブクラスは、レスポンスヘッダーへのアクセスを提供するためにこれを実装する必要があります。型 HttpHeaders の引数を持つ型を返す org.springframework.test.web.support のメソッド修飾子と型メソッド説明protected abstract OptionalSE<HttpHeaders> AbstractXpathAssertions.getResponseHeaders()サブクラスは、レスポンスヘッダーへのアクセスを提供するためにこれを実装する必要があります。org.springframework.web 内の HttpHeaders 使用
HttpHeaders を返す org.springframework.web のメソッド修飾子と型メソッド説明default HttpHeadersErrorResponse.getHeaders()レスポンスに使用するヘッダーを返します。ErrorResponseException.getHeaders()HttpMediaTypeNotAcceptableException.getHeaders()HttpMediaTypeNotSupportedException.getHeaders()HttpRequestMethodNotSupportedException.getHeaders()型 HttpHeaders の型引数を持つ org.springframework.web のメソッドパラメーター修飾子と型メソッド説明ErrorResponse.Builder.headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでこのレスポンスのヘッダーを操作します。org.springframework.web.client 内の HttpHeaders 使用
HttpHeaders を返す org.springframework.web.client のメソッド修飾子と型メソッド説明RestClientResponseException.getResponseHeaders()HTTP レスポンスヘッダーを返します。UnknownContentTypeException.getResponseHeaders()HTTP レスポンスヘッダーを返します。RestOperations.headForHeaders(StringSE url, @Nullable ObjectSE... uriVariables) URI テンプレートで指定されたリソースのすべてのヘッダーを取得します。RestOperations.headForHeaders(StringSE url, MapSE<StringSE, ? extends @Nullable ObjectSE> uriVariables) URI テンプレートで指定されたリソースのすべてのヘッダーを取得します。RestOperations.headForHeaders(URISE url) URL で指定されたリソースのすべてのヘッダーを取得します。RestTemplate.headForHeaders(StringSE url, @Nullable ObjectSE... uriVariables) RestTemplate.headForHeaders(StringSE url, MapSE<StringSE, ? extends @Nullable ObjectSE> uriVariables) RestTemplate.headForHeaders(URISE url) 型 HttpHeaders の引数を持つ型を返す org.springframework.web.client のメソッド修飾子と型メソッド説明protected ResponseExtractor<HttpHeaders> RestTemplate.headersExtractor()HttpHeadersのレスポンス抽出プログラムを返します。型 HttpHeaders のパラメーターを持つ org.springframework.web.client のメソッド修飾子と型メソッド説明static HttpClientErrorExceptionHttpClientErrorException.create(@Nullable StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte @Nullable [] body, @Nullable CharsetSE charset) オプションの準備済みメッセージを含むHttpClientErrorException.create(HttpStatusCode, String, HttpHeaders, byte[], Charset)のバリアント。static HttpClientErrorExceptionHttpClientErrorException.create(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte @Nullable [] body, @Nullable CharsetSE charset) HttpClientErrorExceptionまたは HTTP ステータス固有のサブクラスを作成します。static HttpServerErrorExceptionHttpServerErrorException.create(@Nullable StringSE message, HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, @Nullable CharsetSE charset) オプションの準備済みメッセージを含むHttpServerErrorException.create(String, HttpStatusCode, String, HttpHeaders, byte[], Charset)のバリアント。static HttpServerErrorExceptionHttpServerErrorException.create(HttpStatusCode statusCode, StringSE statusText, HttpHeaders headers, byte[] body, @Nullable CharsetSE charset) HttpServerErrorExceptionまたは HTTP ステータス固有のサブクラスを作成します。default voidApiVersionInserter.insertVersion(ObjectSE version, HttpHeaders headers) リクエストヘッダーにバージョンを挿入します。型 HttpHeaders の型引数を持つ org.springframework.web.client のメソッドパラメーター修飾子と型メソッド説明RestClient.Builder.defaultHeaders(ConsumerSE<HttpHeaders> headersConsumer) これまでに宣言されたすべてのデフォルトヘッダーにアクセスし、追加、置換、削除できるようにコンシューマーを提供します。RestClient.RequestHeadersSpec.headers(ConsumerSE<HttpHeaders> headersConsumer) これまでに宣言されたすべてのヘッダーへのアクセスを提供し、値を追加、置換、削除できます。型 HttpHeaders のパラメーターを持つ org.springframework.web.client のコンストラクター修飾子コンストラクター説明HttpClientErrorException(StringSE message, HttpStatusCode statusCode, StringSE statusText, @Nullable HttpHeaders headers, byte @Nullable [] body, @Nullable CharsetSE responseCharset) ステータスコードとステータステキスト、ヘッダー、コンテンツ、準備されたメッセージを含むコンストラクター。HttpClientErrorException(HttpStatusCode statusCode, StringSE statusText, @Nullable HttpHeaders headers, byte @Nullable [] body, @Nullable CharsetSE responseCharset) ステータスコードとステータステキスト、ヘッダー、コンテンツを持つコンストラクター。HttpServerErrorException(StringSE message, HttpStatusCode statusCode, StringSE statusText, @Nullable HttpHeaders headers, byte @Nullable [] body, @Nullable CharsetSE charset) ステータスコードとステータステキスト、ヘッダー、コンテンツ、準備されたメッセージを含むコンストラクター。HttpServerErrorException(HttpStatusCode statusCode, StringSE statusText, @Nullable HttpHeaders headers, byte @Nullable [] body, @Nullable CharsetSE charset) ステータスコードとステータステキスト、ヘッダー、コンテンツを持つコンストラクター。protectedHttpStatusCodeException(StringSE message, HttpStatusCode statusCode, StringSE statusText, @Nullable HttpHeaders responseHeaders, byte @Nullable [] responseBody, @Nullable CharsetSE responseCharset) HttpStatusCode、ステータステキスト、コンテンツ、レスポンス文字セットを使用してインスタンスを作成します。protectedHttpStatusCodeException(HttpStatusCode statusCode, StringSE statusText, @Nullable HttpHeaders responseHeaders, byte @Nullable [] responseBody, @Nullable CharsetSE responseCharset) HttpStatusCode、ステータステキスト、コンテンツ、レスポンス文字セットを使用してインスタンスを作成します。RestClientResponseException(StringSE message, int statusCode, StringSE statusText, @Nullable HttpHeaders headers, byte @Nullable [] responseBody, @Nullable CharsetSE responseCharset) 指定されたレスポンスデータでの新しいインスタンスを構築します。RestClientResponseException(StringSE message, HttpStatusCode statusCode, StringSE statusText, @Nullable HttpHeaders headers, byte @Nullable [] responseBody, @Nullable CharsetSE responseCharset) 指定されたレスポンスデータでの新しいインスタンスを構築します。UnknownContentTypeException(TypeSE targetType, MediaType contentType, int statusCode, StringSE statusText, HttpHeaders responseHeaders, byte[] responseBody) 指定されたレスポンスデータでの新しいインスタンスを構築します。UnknownContentTypeException(TypeSE targetType, MediaType contentType, HttpStatusCode statusCode, StringSE statusText, HttpHeaders responseHeaders, byte[] responseBody) 指定されたレスポンスデータでの新しいインスタンスを構築します。UnknownHttpStatusCodeException(int rawStatusCode, StringSE statusText, @Nullable HttpHeaders responseHeaders, byte @Nullable [] responseBody, @Nullable CharsetSE responseCharset) ステータスコード、ステータステキスト、レスポンス本文の内容に基づいて、HttpStatusCodeExceptionの新しいインスタンスを構築します。UnknownHttpStatusCodeException(StringSE message, int rawStatusCode, StringSE statusText, @Nullable HttpHeaders responseHeaders, byte @Nullable [] responseBody, @Nullable CharsetSE responseCharset) ステータスコード、ステータステキスト、レスポンス本文の内容に基づいて、HttpStatusCodeExceptionの新しいインスタンスを構築します。org.springframework.web.client.support 内の HttpHeaders 使用
修飾子と型メソッド説明RestClientAdapter.exchangeForHeaders(HttpRequestValues values) RestTemplateAdapter.exchangeForHeaders(HttpRequestValues values) org.springframework.web.multipart 内の HttpHeaders 使用
HttpHeaders を返す org.springframework.web.multipart のメソッド修飾子と型メソッド説明MultipartHttpServletRequest.getMultipartHeaders(StringSE paramOrFileName) マルチパートリクエストの指定された部分のヘッダーを返します。MultipartHttpServletRequest.getRequestHeaders()このリクエストのヘッダーを便利な HttpHeaders インスタンスとして返します。org.springframework.web.multipart.support 内の HttpHeaders 使用
修飾子と型メソッド説明RequestPartServletServerHttpRequest.getHeaders()DefaultMultipartHttpServletRequest.getMultipartHeaders(StringSE paramOrFileName) StandardMultipartHttpServletRequest.getMultipartHeaders(StringSE paramOrFileName) AbstractMultipartHttpServletRequest.getRequestHeaders()org.springframework.web.reactive.function.client 内の HttpHeaders 使用
修飾子と型メソッド説明ClientResponse.Headers.asHttpHeaders()ヘッダーをHttpHeadersインスタンスとして返します。WebClientRequestException.getHeaders()HTTP リクエストヘッダーを返します。WebClientResponseException.getHeaders()HTTP レスポンスヘッダーを返します。ClientRequest.headers()このリクエストのヘッダーを返します。型 HttpHeaders のパラメーターを持つ org.springframework.web.reactive.function.client のメソッド修飾子と型メソッド説明static WebClientResponseExceptionWebClientResponseException.create(int statusCode, StringSE statusText, HttpHeaders headers, byte[] body, @Nullable CharsetSE charset) WebClientResponseExceptionまたは HTTP ステータス固有のサブクラスを作成します。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 ステータス固有のサブクラスを作成します。型 HttpHeaders の型引数を持つ org.springframework.web.reactive.function.client のメソッドパラメーター修飾子と型メソッド説明WebClient.Builder.defaultHeaders(ConsumerSE<HttpHeaders> headersConsumer) これまでに宣言されたすべてのWebClient.Builder.defaultHeader(String, String...)へのアクセスを提供し、追加、置換、削除する機能があります。ClientRequest.Builder.headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでこのリクエストのヘッダーを操作します。ClientResponse.Builder.headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでこのレスポンスのヘッダーを操作します。WebClient.RequestHeadersSpec.headers(ConsumerSE<HttpHeaders> headersConsumer) これまでに宣言されたすべてのヘッダーへのアクセスを提供し、値を追加、置換、削除できます。型 HttpHeaders のパラメーターを持つ org.springframework.web.reactive.function.client のコンストラクター修飾子コンストラクター説明UnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, @Nullable CharsetSE responseCharset, @Nullable HttpRequest request) 指定されたパラメーターでUnknownHttpStatusCodeExceptionの新しいインスタンスを作成します。UnknownHttpStatusCodeException(int statusCode, HttpHeaders headers, byte[] responseBody, CharsetSE responseCharset) 指定されたパラメーターでUnknownHttpStatusCodeExceptionの新しいインスタンスを作成します。UnknownHttpStatusCodeException(HttpStatusCode statusCode, HttpHeaders headers, byte[] responseBody, @Nullable CharsetSE responseCharset, @Nullable HttpRequest request) 指定されたパラメーターでUnknownHttpStatusCodeExceptionの新しいインスタンスを作成します。WebClientRequestException(ThrowableSE ex, HttpMethod method, URISE uri, HttpHeaders headers) スロー可能のコンストラクター。WebClientResponseException(int statusCode, StringSE statusText, @Nullable HttpHeaders headers, byte @Nullable [] body, @Nullable CharsetSE charset) レスポンスデータのみを含むコンストラクター、およびデフォルトメッセージ。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) 準備されたメッセージを持つコンストラクター。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 内の HttpHeaders 使用
型 HttpHeaders の引数を持つ型を返す org.springframework.web.reactive.function.client.support のメソッドorg.springframework.web.reactive.function.server 内の HttpHeaders 使用
修飾子と型メソッド説明ServerRequest.Headers.asHttpHeaders()ヘッダーをHttpHeadersのインスタンスとして取得します。ServerResponse.headers()このレスポンスのヘッダーを返します。型 HttpHeaders のパラメーターを持つ org.springframework.web.reactive.function.server のメソッド修飾子と型メソッド説明EntityResponse.Builder.headers(HttpHeaders headers) 指定されたヘッダーをエンティティのヘッダーマップにコピーします。RenderingResponse.Builder.headers(HttpHeaders headers) 指定されたヘッダーをエンティティのヘッダーマップにコピーします。型 HttpHeaders の型引数を持つ org.springframework.web.reactive.function.server のメソッドパラメーター修飾子と型メソッド説明EntityResponse.Builder.headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでこのエンティティのヘッダーを操作します。ServerRequest.Builder.headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでこのリクエストのヘッダーを操作します。ServerResponse.HeadersBuilder.headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでこのレスポンスのヘッダーを操作します。RouterFunctions.Builder.resource(RequestPredicate predicate, Resource resource, BiConsumerSE<Resource, HttpHeaders> headersConsumer) 指定された述語に一致するリクエストを指定されたリソースにルーティングします。static RouterFunction<ServerResponse> RouterFunctions.resource(RequestPredicate predicate, Resource resource, BiConsumerSE<Resource, HttpHeaders> headersConsumer) 指定された述語に一致するリクエストを指定されたリソースにルーティングします。RouterFunctions.Builder.resources(StringSE pattern, Resource location, BiConsumerSE<Resource, HttpHeaders> headersConsumer) 指定されたパターンに一致するリクエストを、指定されたルートの場所を基準としたリソースにルーティングします。RouterFunctions.Builder.resources(FunctionSE<ServerRequest, Mono<Resource>> lookupFunction, BiConsumerSE<Resource, HttpHeaders> headersConsumer) 提供された検索機能を使用してリソースにルーティングします。static RouterFunction<ServerResponse> RouterFunctions.resources(StringSE pattern, Resource location, BiConsumerSE<Resource, HttpHeaders> headersConsumer) 指定されたパターンに一致するリクエストを、指定されたルートの場所を基準としたリソースにルーティングします。static RouterFunction<ServerResponse> RouterFunctions.resources(FunctionSE<ServerRequest, Mono<Resource>> lookupFunction, BiConsumerSE<Resource, HttpHeaders> headersConsumer) 提供された検索機能を使用してリソースにルーティングします。org.springframework.web.reactive.function.server.support 内の HttpHeaders 使用
org.springframework.web.reactive.resource 内の HttpHeaders 使用
org.springframework.web.reactive.result.method.annotation 内の HttpHeaders 使用
型 HttpHeaders のパラメーターを持つ org.springframework.web.reactive.result.method.annotation のメソッド修飾子と型メソッド説明protected Mono<ResponseEntity<ObjectSE>> ResponseEntityExceptionHandler.createResponseEntity(@Nullable ObjectSE body, @Nullable HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) 指定された本文、ヘッダー、statusCode から使用するResponseEntityを作成します。protected Mono<ResponseEntity<ObjectSE>> ResponseEntityExceptionHandler.handleErrorResponseException(ErrorResponseException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) ErrorResponseExceptionの処理をカスタマイズします。protected Mono<ResponseEntity<ObjectSE>> ResponseEntityExceptionHandler.handleExceptionInternal(ExceptionSE ex, @Nullable ObjectSE body, @Nullable HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) 共通の処理とResponseEntityの作成のために、このクラスの他のすべてが委譲する内部ハンドラーメソッド。protected Mono<ResponseEntity<ObjectSE>> ResponseEntityExceptionHandler.handleHandlerMethodValidationException(HandlerMethodValidationException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) HandlerMethodValidationExceptionの処理をカスタマイズします。protected Mono<ResponseEntity<ObjectSE>> ResponseEntityExceptionHandler.handleMethodNotAllowedException(MethodNotAllowedException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) MethodNotAllowedExceptionの処理をカスタマイズします。protected Mono<ResponseEntity<ObjectSE>> ResponseEntityExceptionHandler.handleMissingRequestValueException(MissingRequestValueException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) MissingRequestValueExceptionの処理をカスタマイズします。protected Mono<ResponseEntity<ObjectSE>> ResponseEntityExceptionHandler.handleNotAcceptableStatusException(NotAcceptableStatusException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) NotAcceptableStatusExceptionの処理をカスタマイズします。protected Mono<ResponseEntity<ObjectSE>> ResponseEntityExceptionHandler.handleResponseStatusException(ResponseStatusException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) ResponseStatusExceptionの処理をカスタマイズします。protected Mono<ResponseEntity<ObjectSE>> ResponseEntityExceptionHandler.handleServerErrorException(ServerErrorException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) ServerErrorExceptionの処理をカスタマイズします。protected Mono<ResponseEntity<ObjectSE>> ResponseEntityExceptionHandler.handleServerWebInputException(ServerWebInputException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) ServerWebInputExceptionの処理をカスタマイズします。protected Mono<ResponseEntity<ObjectSE>> ResponseEntityExceptionHandler.handleUnsatisfiedRequestParameterException(UnsatisfiedRequestParameterException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) UnsatisfiedRequestParameterExceptionの処理をカスタマイズします。protected Mono<ResponseEntity<ObjectSE>> ResponseEntityExceptionHandler.handleUnsupportedMediaTypeStatusException(UnsupportedMediaTypeStatusException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) UnsupportedMediaTypeStatusExceptionの処理をカスタマイズします。protected Mono<ResponseEntity<ObjectSE>> ResponseEntityExceptionHandler.handleWebExchangeBindException(WebExchangeBindException ex, HttpHeaders headers, HttpStatusCode status, ServerWebExchange exchange) WebExchangeBindExceptionの処理をカスタマイズします。org.springframework.web.reactive.result.view 内の HttpHeaders 使用
修飾子と型メソッド説明FragmentsRendering.headers()レスポンスに追加するヘッダーを返します。Rendering.headers()レスポンスに追加するヘッダーを返します。型 HttpHeaders のパラメーターを持つ org.springframework.web.reactive.result.view のメソッド型 HttpHeaders の型引数を持つ org.springframework.web.reactive.result.view のメソッドパラメーター修飾子と型メソッド説明FragmentsRendering.Builder.headers(ConsumerSE<HttpHeaders> headersConsumer) これまでに宣言されたすべてのヘッダーへのアクセスを提供し、値を追加、置換、削除できます。org.springframework.web.reactive.socket 内の HttpHeaders 使用
修飾子と型メソッド説明HandshakeInfo.getHeaders()ハンドシェイクリクエストから HTTP ヘッダーを返します。これは、サーバーセッションのサーバーリクエストヘッダーまたはクライアントセッションのクライアントレスポンスヘッダーのいずれかです。型 HttpHeaders のパラメーターを持つ org.springframework.web.reactive.socket のコンストラクター修飾子コンストラクター説明HandshakeInfo(URISE uri, HttpHeaders headers, MultiValueMap<StringSE, HttpCookie> cookies, Mono<PrincipalSE> principal, @Nullable StringSE protocol, @Nullable InetSocketAddressSE remoteAddress, MapSE<StringSE, ObjectSE> attributes, @Nullable StringSE logPrefix) Cookie、リモートアドレス、属性、ログプレフィックスなどの追加情報を使用してサーバー側で使用することを目的としたコンストラクター。HandshakeInfo(URISE uri, HttpHeaders headers, Mono<PrincipalSE> principal, @Nullable StringSE protocol) ハンドシェイクに関する基本情報を持つコンストラクター。org.springframework.web.reactive.socket.client 内の HttpHeaders 使用
型 HttpHeaders のパラメーターを持つ org.springframework.web.reactive.socket.client のメソッド修飾子と型メソッド説明JettyWebSocketClient.execute(URISE url, @Nullable HttpHeaders headers, WebSocketHandler handler) ReactorNettyWebSocketClient.execute(URISE url, HttpHeaders requestHeaders, WebSocketHandler handler) StandardWebSocketClient.execute(URISE url, HttpHeaders headers, WebSocketHandler handler) WebSocketClient.execute(URISE url, HttpHeaders headers, WebSocketHandler handler) カスタムヘッダーを持つWebSocketClient.execute(URI, WebSocketHandler)のバリアント。org.springframework.web.server 内の HttpHeaders 使用
HttpHeaders を返す org.springframework.web.server のメソッド修飾子と型メソッド説明MethodNotAllowedException.getHeaders()この URL で許可されている HTTP メソッドをドキュメント化する "Allow" ヘッダーを含む HttpHeaders を返します (利用可能な場合)。そうでない場合は空のインスタンスを返します。NotAcceptableStatusException.getHeaders()利用可能な場合はサポートされているメディア型をドキュメント化する "Accept" ヘッダーを含む HttpHeaders を返し、そうでない場合は空のインスタンスを返します。ResponseStatusException.getHeaders()エラーレスポンスに追加するヘッダーを返します (例: "Allow"、"Accept" など)。UnsupportedMediaTypeStatusException.getHeaders()利用可能な場合はサポートされているメディア型をドキュメント化する "Accept" ヘッダーを含む HttpHeaders を返し、そうでない場合は空のインスタンスを返します。org.springframework.web.service.invoker 内の HttpHeaders 使用
修飾子と型メソッド説明AbstractReactorHttpExchangeAdapter.exchangeForHeaders(HttpRequestValues requestValues) HttpExchangeAdapter.exchangeForHeaders(HttpRequestValues requestValues) 指定されたリクエストを実行し、レスポンスコンテンツを解放し、レスポンスヘッダーを返します。HttpExchangeAdapterDecorator.exchangeForHeaders(HttpRequestValues requestValues) ReactorHttpExchangeAdapterDecorator.exchangeForHeaders(HttpRequestValues requestValues) HttpRequestValues.getHeaders()リクエストのヘッダーがあれば、それを返します。型 HttpHeaders の引数を持つ型を返す org.springframework.web.service.invoker のメソッド修飾子と型メソッド説明ReactorHttpExchangeAdapter.exchangeForHeadersMono(HttpRequestValues requestValues) 指定されたリクエストを実行し、レスポンスコンテンツを解放し、レスポンスヘッダーを返します。ReactorHttpExchangeAdapterDecorator.exchangeForHeadersMono(HttpRequestValues requestValues) 型 HttpHeaders のパラメーターを持つ 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) 型 HttpHeaders の型引数を持つ org.springframework.web.service.invoker のメソッドパラメーター修飾子と型メソッド説明HttpRequestValues.Builder.configureHeaders(ConsumerSE<HttpHeaders> consumer) 値を追加、置換、削除するオプションを使用して、これまでに構成されたすべてのヘッダーへのアクセスを提供します。型 HttpHeaders のパラメーターを持つ 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 内の HttpHeaders 使用
HttpHeaders を返す org.springframework.web.servlet のメソッド修飾子と型メソッド説明NoHandlerFoundException.getHeaders()レスポンスに使用するヘッダーを返します。NoHandlerFoundException.getRequestHeaders()リクエストのヘッダーを返します。型 HttpHeaders のパラメーターを持つ org.springframework.web.servlet のコンストラクター修飾子コンストラクター説明NoHandlerFoundException(StringSE httpMethod, StringSE requestURL, HttpHeaders headers) NoHandlerFoundException のコンストラクター。org.springframework.web.servlet.function 内の HttpHeaders 使用
修飾子と型メソッド説明ServerRequest.Headers.asHttpHeaders()ヘッダーをHttpHeadersのインスタンスとして取得します。ServerResponse.headers()このレスポンスのヘッダーを返します。型 HttpHeaders の型引数を持つ org.springframework.web.servlet.function のメソッドパラメーター修飾子と型メソッド説明EntityResponse.Builder.headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでこのレスポンスのヘッダーを操作します。RenderingResponse.Builder.headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでこのレスポンスのヘッダーを操作します。ServerRequest.Builder.headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでこのリクエストのヘッダーを操作します。ServerResponse.HeadersBuilder.headers(ConsumerSE<HttpHeaders> headersConsumer) 指定されたコンシューマーでこのレスポンスのヘッダーを操作します。RouterFunctions.Builder.resource(RequestPredicate predicate, Resource resource, BiConsumerSE<Resource, HttpHeaders> headersConsumer) 指定された述語に一致するリクエストを指定されたリソースにルーティングします。static RouterFunction<ServerResponse> RouterFunctions.resource(RequestPredicate predicate, Resource resource, BiConsumerSE<Resource, HttpHeaders> headersConsumer) 指定された述語に一致するリクエストを指定されたリソースにルーティングします。RouterFunctions.Builder.resources(StringSE pattern, Resource location, BiConsumerSE<Resource, HttpHeaders> headersConsumer) 指定されたパターンに一致するリクエストを、指定されたルートの場所を基準としたリソースにルーティングします。RouterFunctions.Builder.resources(FunctionSE<ServerRequest, OptionalSE<Resource>> lookupFunction, BiConsumerSE<Resource, HttpHeaders> headersConsumer) 提供された検索機能を使用してリソースにルーティングします。static RouterFunction<ServerResponse> RouterFunctions.resources(StringSE pattern, Resource location, BiConsumerSE<Resource, HttpHeaders> headersConsumer) 指定されたパターンに一致するリクエストを、指定されたルートの場所を基準としたリソースにルーティングします。static RouterFunction<ServerResponse> RouterFunctions.resources(FunctionSE<ServerRequest, OptionalSE<Resource>> lookupFunction, BiConsumerSE<Resource, HttpHeaders> headersConsumer) 提供された検索機能を使用してリソースにルーティングします。org.springframework.web.servlet.mvc.method.annotation 内の HttpHeaders 使用
型 HttpHeaders のパラメーターを持つ org.springframework.web.servlet.mvc.method.annotation のメソッド修飾子と型メソッド説明protected ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.createResponseEntity(@Nullable ObjectSE body, HttpHeaders headers, HttpStatusCode statusCode, WebRequest request) 指定された本文、ヘッダー、statusCode から使用するResponseEntityを作成します。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleAsyncRequestTimeoutException(AsyncRequestTimeoutException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) AsyncRequestTimeoutExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleConversionNotSupported(ConversionNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) ConversionNotSupportedExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleErrorResponseException(ErrorResponseException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) ErrorResponseExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleExceptionInternal(ExceptionSE ex, @Nullable ObjectSE body, HttpHeaders headers, HttpStatusCode statusCode, WebRequest request) 共通の処理とResponseEntityの作成のために、このクラスの他のすべてが委譲する内部ハンドラーメソッド。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleHandlerMethodValidationException(HandlerMethodValidationException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) HandlerMethodValidationExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleHttpMediaTypeNotAcceptable(HttpMediaTypeNotAcceptableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) HttpMediaTypeNotAcceptableExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleHttpMediaTypeNotSupported(HttpMediaTypeNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) HttpMediaTypeNotSupportedExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleHttpMessageNotReadable(HttpMessageNotReadableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) HttpMessageNotReadableExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleHttpMessageNotWritable(HttpMessageNotWritableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) HttpMessageNotWritableExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleHttpRequestMethodNotSupported(HttpRequestMethodNotSupportedException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) HttpRequestMethodNotSupportedExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleMaxUploadSizeExceededException(MaxUploadSizeExceededException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) MaxUploadSizeExceededExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleMethodArgumentNotValid(MethodArgumentNotValidException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) MethodArgumentNotValidExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleMethodValidationException(MethodValidationException ex, HttpHeaders headers, HttpStatus status, WebRequest request) MethodValidationExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleMissingPathVariable(MissingPathVariableException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) MissingPathVariableExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleMissingServletRequestParameter(MissingServletRequestParameterException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) MissingServletRequestParameterExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleMissingServletRequestPart(MissingServletRequestPartException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) MissingServletRequestPartExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleNoHandlerFoundException(NoHandlerFoundException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) NoHandlerFoundExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleNoResourceFoundException(NoResourceFoundException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) NoResourceFoundExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleServletRequestBindingException(ServletRequestBindingException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) ServletRequestBindingExceptionの処理をカスタマイズします。protected @Nullable ResponseEntity<ObjectSE> ResponseEntityExceptionHandler.handleTypeMismatch(TypeMismatchException ex, HttpHeaders headers, HttpStatusCode status, WebRequest request) TypeMismatchExceptionの処理をカスタマイズします。org.springframework.web.servlet.resource 内の HttpHeaders 使用
org.springframework.web.servlet.view 内の HttpHeaders 使用
型 HttpHeaders の型引数を持つ org.springframework.web.servlet.view のメソッドパラメーター修飾子と型メソッド説明FragmentsRendering.Builder.headers(ConsumerSE<HttpHeaders> headersConsumer) これまでに宣言されたすべてのヘッダーへのアクセスを提供し、値を追加、置換、削除できます。org.springframework.web.socket 内の HttpHeaders 使用
HttpHeaders を返す org.springframework.web.socket のメソッド型 HttpHeaders のパラメーターを持つ org.springframework.web.socket のコンストラクター修飾子コンストラクター説明WebSocketHttpHeaders(HttpHeaders httpHeaders) 提供されたHttpHeadersを基にして新しいWebSocketHttpHeadersインスタンスを構築します。org.springframework.web.socket.adapter.jetty 内の HttpHeaders 使用
org.springframework.web.socket.adapter.standard 内の HttpHeaders 使用
型 HttpHeaders のパラメーターを持つ org.springframework.web.socket.adapter.standard のコンストラクター修飾子コンストラクター説明StandardWebSocketSession(@Nullable HttpHeaders headers, @Nullable MapSE<StringSE, ObjectSE> attributes, @Nullable InetSocketAddressSE localAddress, @Nullable InetSocketAddressSE remoteAddress) 標準の WebSocket セッションのコンストラクター。StandardWebSocketSession(@Nullable HttpHeaders headers, @Nullable MapSE<StringSE, ObjectSE> attributes, @Nullable InetSocketAddressSE localAddress, @Nullable InetSocketAddressSE remoteAddress, @Nullable PrincipalSE user) ユーザーを WebSocket セッションに関連付けるコンストラクター。org.springframework.web.socket.client 内の HttpHeaders 使用
型 HttpHeaders のパラメーターを持つ org.springframework.web.socket.client のメソッド修飾子と型メソッド説明protected abstract CompletableFutureSE<WebSocketSession> AbstractWebSocketClient.executeInternal(WebSocketHandler webSocketHandler, HttpHeaders headers, URISE uri, ListSE<StringSE> subProtocols, ListSE<WebSocketExtension> extensions, MapSE<StringSE, ObjectSE> attributes) 実際のハンドシェイクを実行して、サーバーへの接続を確立します。voidWebSocketConnectionManager.setHeaders(HttpHeaders headers) WebSocket ハンドシェイクリクエストに追加するデフォルトのヘッダーを提供します。org.springframework.web.socket.client.standard 内の HttpHeaders 使用
型 HttpHeaders のパラメーターを持つ org.springframework.web.socket.client.standard のメソッド修飾子と型メソッド説明protected CompletableFutureSE<WebSocketSession> StandardWebSocketClient.executeInternal(WebSocketHandler webSocketHandler, HttpHeaders headers, URISE uri, ListSE<StringSE> protocols, ListSE<WebSocketExtension> extensions, MapSE<StringSE, ObjectSE> attributes) org.springframework.web.socket.handler 内の HttpHeaders 使用
org.springframework.web.socket.sockjs.client 内の HttpHeaders 使用
修飾子と型メソッド説明AbstractClientSockJsSession.getHandshakeHeaders()TransportRequest.getHandshakeHeaders()接続リクエストで送信するヘッダーを返します。XhrClientSockJsSession.getHeaders()TransportRequest.getHttpRequestHeaders()XHR 受信および送信リクエストなどのハンドシェイクリクエスト以外のすべての HTTP リクエストに追加するヘッダーを返します。型 HttpHeaders のパラメーターを持つ org.springframework.web.socket.sockjs.client のメソッド修飾子と型メソッド説明protected abstract voidAbstractXhrTransport.connectInternal(TransportRequest request, WebSocketHandler handler, URISE receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, CompletableFutureSE<WebSocketSession> connectFuture) protected voidJettyXhrTransport.connectInternal(TransportRequest transportRequest, WebSocketHandler handler, URISE url, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, CompletableFutureSE<WebSocketSession> connectFuture) protected voidRestClientXhrTransport.connectInternal(TransportRequest transportRequest, WebSocketHandler handler, URISE receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, CompletableFutureSE<WebSocketSession> connectFuture) protected voidRestTemplateXhrTransport.connectInternal(TransportRequest transportRequest, WebSocketHandler handler, URISE receiveUrl, HttpHeaders handshakeHeaders, XhrClientSockJsSession session, CompletableFutureSE<WebSocketSession> connectFuture) AbstractXhrTransport.executeInfoRequest(URISE infoUrl, @Nullable HttpHeaders headers) InfoReceiver.executeInfoRequest(URISE infoUrl, @Nullable HttpHeaders headers) SockJS の「情報」URL への HTTP リクエストを実行します。protected abstract ResponseEntity<StringSE> AbstractXhrTransport.executeInfoRequestInternal(URISE infoUrl, HttpHeaders headers) protected ResponseEntity<StringSE> JettyXhrTransport.executeInfoRequestInternal(URISE infoUrl, HttpHeaders headers) protected ResponseEntity<StringSE> RestClientXhrTransport.executeInfoRequestInternal(URISE infoUrl, HttpHeaders headers) protected ResponseEntity<StringSE> RestTemplateXhrTransport.executeInfoRequestInternal(URISE infoUrl, HttpHeaders headers) protected ResponseEntity<StringSE> JettyXhrTransport.executeRequest(URISE url, org.eclipse.jetty.http.HttpMethod method, HttpHeaders headers, @Nullable StringSE body) voidAbstractXhrTransport.executeSendRequest(URISE url, HttpHeaders headers, TextMessage message) voidXhrTransport.executeSendRequest(URISE transportUrl, HttpHeaders headers, TextMessage message) リクエストを実行して、メッセージをサーバーに送信します。protected abstract ResponseEntity<StringSE> AbstractXhrTransport.executeSendRequestInternal(URISE url, HttpHeaders headers, TextMessage message) JettyXhrTransport.executeSendRequestInternal(URISE url, HttpHeaders headers, TextMessage message) RestClientXhrTransport.executeSendRequestInternal(URISE url, HttpHeaders headers, TextMessage message) RestTemplateXhrTransport.executeSendRequestInternal(URISE url, HttpHeaders headers, TextMessage message) org.springframework.web.socket.sockjs.transport.session 内の HttpHeaders 使用
修飾子と型メソッド説明AbstractHttpSockJsSession.getHandshakeHeaders()WebSocketServerSockJsSession.getHandshakeHeaders()org.springframework.web.util 内の HttpHeaders 使用
型 HttpHeaders のパラメーターを持つ org.springframework.web.util のメソッド修飾子と型メソッド説明static UriComponentsBuilderForwardedHeaderUtils.adaptFromForwardedHeaders(URISE uri, HttpHeaders headers) static @Nullable InetSocketAddressSEForwardedHeaderUtils.parseForwardedBy(URISE uri, HttpHeaders headers, @Nullable InetSocketAddressSE localAddress) 最初の「転送済み」を解析します: by=..." ヘッダー値を、サーバーのアドレスを表すInetSocketAddressに変換します。static @Nullable InetSocketAddressSEForwardedHeaderUtils.parseForwardedFor(URISE uri, HttpHeaders headers, @Nullable InetSocketAddressSE remoteAddress) 最初の「転送済み」を解析します: クライアントのアドレスを表すInetSocketAddressへの for =... " または " X-Forwarded-For " ヘッダー値。