public static final class ALBHttpCacheConfig.Builder
extends java.lang.Object
ALBHttpCacheConfig.| Constructor and Description |
|---|
Builder()
Constructor with parameters for the required properties of
ALBHttpCacheConfig. |
| Modifier and Type | Method and Description |
|---|---|
ALBHttpCacheConfig |
build() |
ALBHttpCacheConfig.Builder |
setAgeHeader(java.lang.Boolean ageHeader)
Add an Age header to content served from cache, which indicates to the client
the number of seconds the object has been in the cache.
|
ALBHttpCacheConfig.Builder |
setAggressive(java.lang.Boolean aggressive)
Enable/disable caching objects without Cache-Control headers.
|
ALBHttpCacheConfig.Builder |
setDateHeader(java.lang.Boolean dateHeader)
If a Date header was not added by the server, add a Date header to the object
served from cache.
|
ALBHttpCacheConfig.Builder |
setDefaultExpire(java.lang.Long defaultExpire)
Default expiration time of cache objects received from the server without a
Cache-Control expiration header.
|
ALBHttpCacheConfig.Builder |
setEnabled(java.lang.Boolean enabled)
Enable/disable HTTP object caching.When enabling caching for the first time, SE
Group app_cache_percent must be set to allocate shared memory required for
caching (A service engine restart is needed after setting/resetting the SE group
value).
|
ALBHttpCacheConfig.Builder |
setHeuristicExpire(java.lang.Boolean heuristicExpire)
If a response object from the server does not include the Cache-Control header,
but does include a Last-Modified header, the system will use this time to
calculate the Cache-Control expiration.
|
ALBHttpCacheConfig.Builder |
setIgnoreRequestCacheControl(java.lang.Boolean ignoreRequestCacheControl)
Ignore client's cache control headers when fetching or storing from and to the
cache.
|
ALBHttpCacheConfig.Builder |
setMaxCacheSize(java.lang.Long maxCacheSize)
Max size, in bytes, of the cache.
|
ALBHttpCacheConfig.Builder |
setMaxObjectSize(java.lang.Long maxObjectSize)
Maximum size of an object to store in the cache.
|
ALBHttpCacheConfig.Builder |
setMimeTypesBlockGroupPaths(java.util.List<java.lang.String> mimeTypesBlockGroupPaths)
Blocklist string group of non-cacheable mime types.
|
ALBHttpCacheConfig.Builder |
setMimeTypesBlockLists(java.util.List<java.lang.String> mimeTypesBlockLists)
Blocklist of non-cacheable mime types.
|
ALBHttpCacheConfig.Builder |
setMimeTypesGroupPaths(java.util.List<java.lang.String> mimeTypesGroupPaths)
Allowlist string group of cacheable mime types.
|
ALBHttpCacheConfig.Builder |
setMimeTypesList(java.util.List<java.lang.String> mimeTypesList)
Allowlist of cacheable mime types.
|
ALBHttpCacheConfig.Builder |
setMinObjectSize(java.lang.Long minObjectSize)
Minimum size of an object to store in the cache.
|
ALBHttpCacheConfig.Builder |
setQueryCacheable(java.lang.Boolean queryCacheable)
Allow caching of objects whose URI included a query argument.
|
ALBHttpCacheConfig.Builder |
setUriNonCacheable(ALBPathMatch uriNonCacheable) |
ALBHttpCacheConfig.Builder |
setXcacheHeader(java.lang.Boolean xcacheHeader)
Add an X-Cache header to content served from cache, which indicates to the
client that the object was served from an intermediate cache.
|
public Builder()
ALBHttpCacheConfig.public ALBHttpCacheConfig.Builder setAgeHeader(java.lang.Boolean ageHeader)
ageHeader - New value for the property.public ALBHttpCacheConfig.Builder setAggressive(java.lang.Boolean aggressive)
aggressive - New value for the property.public ALBHttpCacheConfig.Builder setDateHeader(java.lang.Boolean dateHeader)
dateHeader - New value for the property.public ALBHttpCacheConfig.Builder setDefaultExpire(java.lang.Long defaultExpire)
defaultExpire - New value for the property.public ALBHttpCacheConfig.Builder setEnabled(java.lang.Boolean enabled)
enabled - New value for the property.public ALBHttpCacheConfig.Builder setHeuristicExpire(java.lang.Boolean heuristicExpire)
heuristicExpire - New value for the property.public ALBHttpCacheConfig.Builder setIgnoreRequestCacheControl(java.lang.Boolean ignoreRequestCacheControl)
ignoreRequestCacheControl - New value for the property.public ALBHttpCacheConfig.Builder setMaxCacheSize(java.lang.Long maxCacheSize)
maxCacheSize - New value for the property.public ALBHttpCacheConfig.Builder setMaxObjectSize(java.lang.Long maxObjectSize)
maxObjectSize - New value for the property.public ALBHttpCacheConfig.Builder setMimeTypesBlockGroupPaths(java.util.List<java.lang.String> mimeTypesBlockGroupPaths)
mimeTypesBlockGroupPaths - New value for the property.public ALBHttpCacheConfig.Builder setMimeTypesBlockLists(java.util.List<java.lang.String> mimeTypesBlockLists)
mimeTypesBlockLists - New value for the property.public ALBHttpCacheConfig.Builder setMimeTypesGroupPaths(java.util.List<java.lang.String> mimeTypesGroupPaths)
mimeTypesGroupPaths - New value for the property.public ALBHttpCacheConfig.Builder setMimeTypesList(java.util.List<java.lang.String> mimeTypesList)
mimeTypesList - New value for the property.public ALBHttpCacheConfig.Builder setMinObjectSize(java.lang.Long minObjectSize)
minObjectSize - New value for the property.public ALBHttpCacheConfig.Builder setQueryCacheable(java.lang.Boolean queryCacheable)
queryCacheable - New value for the property.public ALBHttpCacheConfig.Builder setUriNonCacheable(ALBPathMatch uriNonCacheable)
uriNonCacheable - New value for the property.public ALBHttpCacheConfig.Builder setXcacheHeader(java.lang.Boolean xcacheHeader)
xcacheHeader - New value for the property.public ALBHttpCacheConfig build()