public static class CacheKeyPolicy.Builder extends Object
Modifier and Type | Method and Description |
---|---|
CacheKeyPolicy.Builder |
addAllQueryStringBlacklist(List<String> queryStringBlacklist)
Names of query string parameters to exclude in cache keys.
|
CacheKeyPolicy.Builder |
addAllQueryStringWhitelist(List<String> queryStringWhitelist)
Names of query string parameters to include in cache keys.
|
CacheKeyPolicy.Builder |
addQueryStringBlacklist(String queryStringBlacklist)
Names of query string parameters to exclude in cache keys.
|
CacheKeyPolicy.Builder |
addQueryStringWhitelist(String queryStringWhitelist)
Names of query string parameters to include in cache keys.
|
CacheKeyPolicy |
build() |
CacheKeyPolicy.Builder |
clone() |
Boolean |
getIncludeHost()
If true, requests to different hosts will be cached separately.
|
Boolean |
getIncludeProtocol()
If true, http and https requests will be cached separately.
|
Boolean |
getIncludeQueryString()
If true, include query string parameters in the cache key according to query_string_whitelist
and query_string_blacklist.
|
List<String> |
getQueryStringBlacklistList()
Names of query string parameters to exclude in cache keys.
|
List<String> |
getQueryStringWhitelistList()
Names of query string parameters to include in cache keys.
|
CacheKeyPolicy.Builder |
mergeFrom(CacheKeyPolicy other) |
CacheKeyPolicy.Builder |
setIncludeHost(Boolean includeHost)
If true, requests to different hosts will be cached separately.
|
CacheKeyPolicy.Builder |
setIncludeProtocol(Boolean includeProtocol)
If true, http and https requests will be cached separately.
|
CacheKeyPolicy.Builder |
setIncludeQueryString(Boolean includeQueryString)
If true, include query string parameters in the cache key according to query_string_whitelist
and query_string_blacklist.
|
public CacheKeyPolicy.Builder mergeFrom(CacheKeyPolicy other)
public Boolean getIncludeHost()
public CacheKeyPolicy.Builder setIncludeHost(Boolean includeHost)
public Boolean getIncludeProtocol()
public CacheKeyPolicy.Builder setIncludeProtocol(Boolean includeProtocol)
public Boolean getIncludeQueryString()
public CacheKeyPolicy.Builder setIncludeQueryString(Boolean includeQueryString)
public List<String> getQueryStringBlacklistList()
public CacheKeyPolicy.Builder addAllQueryStringBlacklist(List<String> queryStringBlacklist)
public CacheKeyPolicy.Builder addQueryStringBlacklist(String queryStringBlacklist)
public List<String> getQueryStringWhitelistList()
public CacheKeyPolicy.Builder addAllQueryStringWhitelist(List<String> queryStringWhitelist)
public CacheKeyPolicy.Builder addQueryStringWhitelist(String queryStringWhitelist)
public CacheKeyPolicy build()
public CacheKeyPolicy.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.