クラスの使用
org.springframework.http.CacheControl
CacheControl を使用するパッケージ
パッケージ
説明
クライアント / サーバー側 HTTP の基本的な抽象化が含まれています。
Web アプリケーションをテストするためのサポートクラス。
Spring WebFlux 構成インフラストラクチャ。
Spring のリアクティブ環境用の関数 Web フレームワークを構成する型を提供します。
静的リソースを提供するためのサポートクラス。
Spring MVC のアノテーションベースのセットアップ。
Spring のサーブレット環境用の関数 Web フレームワークを構成する型を提供します。
Spring に付属するサーブレット MVC フレームワークの標準コントローラー実装。
Spring の Web MVC フレームワークのサポートクラス。
org.springframework.http 内の CacheControl 使用
CacheControl を返す org.springframework.http のメソッド修飾子と型メソッド説明CacheControl.cachePrivate()"private" ディレクティブを追加します。CacheControl.cachePublic()"public" ディレクティブを追加します。static CacheControlCacheControl.empty()空のディレクティブを返します。CacheControl.immutable()「不変」ディレクティブを追加します。static CacheControlCacheControl.maxAge(long maxAge, TimeUnitSE unit) "max-age =" ディレクティブを追加します。static CacheControlCacheControl.maxAge(DurationSE maxAge) "max-age =" ディレクティブを追加します。CacheControl.mustRevalidate()"must-revalidate" ディレクティブを追加します。static CacheControlCacheControl.noCache()"no-cache" ディレクティブを追加します。static CacheControlCacheControl.noStore()"no-store" ディレクティブを追加します。CacheControl.noTransform()"no-transform" ディレクティブを追加します。CacheControl.proxyRevalidate()"proxy-revalidate" ディレクティブを追加します。CacheControl.sMaxAge(long sMaxAge, TimeUnitSE unit) "s-maxage" ディレクティブを追加します。CacheControl.sMaxAge(DurationSE sMaxAge) "s-maxage" ディレクティブを追加します。CacheControl.staleIfError(long staleIfError, TimeUnitSE unit) "stale-if-error" ディレクティブを追加します。CacheControl.staleIfError(DurationSE staleIfError) "stale-if-error" ディレクティブを追加します。CacheControl.staleWhileRevalidate(long staleWhileRevalidate, TimeUnitSE unit) "stale-while-revalidate" ディレクティブを追加します。CacheControl.staleWhileRevalidate(DurationSE staleWhileRevalidate) "stale-while-revalidate" ディレクティブを追加します。型 CacheControl のパラメーターを持つ org.springframework.http のメソッド修飾子と型メソッド説明ResponseEntity.HeadersBuilder.cacheControl(CacheControl cacheControl) HTTP 1.1Cache-Controlヘッダーで指定されているように、リソースのキャッシュディレクティブを設定します。voidHttpHeaders.setCacheControl(CacheControl cacheControl) 設定されたCacheControlインスタンスをCache-Controlヘッダーの新しい値として設定します。org.springframework.test.web.support 内の CacheControl 使用
型 CacheControl のパラメーターを持つ org.springframework.test.web.support のメソッド修飾子と型メソッド説明AbstractHeaderAssertions.cacheControl(CacheControl cacheControl) 指定された値を持つ "Cache-Control" ヘッダーが必要です。org.springframework.web.reactive.config 内の CacheControl 使用
型 CacheControl のパラメーターを持つ org.springframework.web.reactive.config のメソッド修飾子と型メソッド説明ResourceHandlerRegistration.setCacheControl(CacheControl cacheControl) リソースハンドラーが使用するCacheControlを指定します。org.springframework.web.reactive.function.server 内の CacheControl 使用
型 CacheControl のパラメーターを持つ org.springframework.web.reactive.function.server のメソッド修飾子と型メソッド説明EntityResponse.Builder.cacheControl(CacheControl cacheControl) HTTP 1.1Cache-Controlヘッダーで指定されているように、リソースのキャッシュディレクティブを設定します。ServerResponse.HeadersBuilder.cacheControl(CacheControl cacheControl) HTTP 1.1Cache-Controlヘッダーで指定されているように、リソースのキャッシュディレクティブを設定します。org.springframework.web.reactive.resource 内の CacheControl 使用
修飾子と型メソッド説明ResourceWebHandler.getCacheControl()CacheControlインスタンスを返して、Cache-Control HTTP レスポンスヘッダーを作成します。型 CacheControl のパラメーターを持つ org.springframework.web.reactive.resource のメソッド修飾子と型メソッド説明voidResourceWebHandler.setCacheControl(@Nullable CacheControl cacheControl) CacheControlインスタンスを設定して、Cache-Control HTTP レスポンスヘッダーを構築します。org.springframework.web.servlet.config.annotation 内の CacheControl 使用
型 CacheControl のパラメーターを持つ org.springframework.web.servlet.config.annotation のメソッド修飾子と型メソッド説明ResourceHandlerRegistration.setCacheControl(CacheControl cacheControl) リソースハンドラーが使用するCacheControlを指定します。org.springframework.web.servlet.function 内の CacheControl 使用
型 CacheControl のパラメーターを持つ org.springframework.web.servlet.function のメソッド修飾子と型メソッド説明EntityResponse.Builder.cacheControl(CacheControl cacheControl) HTTP 1.1Cache-Controlヘッダーで指定されているように、リソースのキャッシュディレクティブを設定します。ServerResponse.HeadersBuilder.cacheControl(CacheControl cacheControl) HTTP 1.1Cache-Controlヘッダーで指定されているように、リソースのキャッシュディレクティブを設定します。org.springframework.web.servlet.mvc 内の CacheControl 使用
修飾子と型メソッド説明protected @Nullable CacheControlWebContentInterceptor.lookupCacheControl(StringSE lookupPath) 非推奨、削除予定: この API 要素は、将来のバージョンで削除される可能性があります。protected @Nullable CacheControlWebContentInterceptor.lookupCacheControl(PathContainer path) 指定された解析済みpathのCacheControlインスタンスを検索します。型 CacheControl のパラメーターを持つ org.springframework.web.servlet.mvc のメソッド修飾子と型メソッド説明voidWebContentInterceptor.addCacheMapping(CacheControl cacheControl, StringSE... paths) 特定の URL パスを特定のCacheControlにマップします。org.springframework.web.servlet.support 内の CacheControl 使用
修飾子と型メソッド説明final @Nullable CacheControlWebContentGenerator.getCacheControl()Cache-Control HTTP レスポンスヘッダーを作成するCacheControlインスタンスを取得します。型 CacheControl のパラメーターを持つ org.springframework.web.servlet.support のメソッド修飾子と型メソッド説明protected final voidWebContentGenerator.applyCacheControl(jakarta.servlet.http.HttpServletResponse response, CacheControl cacheControl) 指定された設定に従って HTTP Cache-Control ヘッダーを設定します。final voidWebContentGenerator.setCacheControl(@Nullable CacheControl cacheControl) CacheControlインスタンスを設定して、Cache-Control HTTP レスポンスヘッダーを構築します。
PathMatcherおよびUrlPathHelperの使用は、Web モジュールでの実行時の使用では非推奨となり、代わりにPathPatternParserによる解析パターンが推奨されます。