public final class ALBHttpCacheConfig
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
| Modifier and Type | Class and Description |
|---|---|
static class |
ALBHttpCacheConfig.Builder
Builder class for
ALBHttpCacheConfig. |
| Modifier and Type | Field and Description |
|---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
| Modifier | Constructor and Description |
|---|---|
|
ALBHttpCacheConfig()
Default constructor.
|
protected |
ALBHttpCacheConfig(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
| Modifier and Type | Method and Description |
|---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_convertTo(java.lang.Class<T> clazz) |
java.lang.String |
_getCanonicalName() |
static java.lang.String |
_getCanonicalTypeName()
Returns the canonical type name.
|
static com.vmware.vapi.bindings.type.StructType |
_getClassType()
WARNING: Internal method, subject to change in future versions.
|
com.vmware.vapi.data.StructValue |
_getDataValue() |
com.vmware.vapi.data.DataValue |
_getDynamicField(java.lang.String fieldName) |
java.util.Set<java.lang.String> |
_getDynamicFieldNames() |
com.vmware.vapi.bindings.type.StructType |
_getType() |
boolean |
_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz) |
static ALBHttpCacheConfig |
_newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value. WARNING: The returned object is not fully initialized. |
static ALBHttpCacheConfig |
_newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue) |
protected void |
_updateDataValue(com.vmware.vapi.data.StructValue structValue) |
void |
_validate() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getAgeHeader()
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.
|
java.lang.Boolean |
getAggressive()
Enable/disable caching objects without Cache-Control headers.
|
java.lang.Boolean |
getDateHeader()
If a Date header was not added by the server, add a Date header to the object
served from cache.
|
java.lang.Long |
getDefaultExpire()
Default expiration time of cache objects received from the server without a
Cache-Control expiration header.
|
java.lang.Boolean |
getEnabled()
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).
|
java.lang.Boolean |
getHeuristicExpire()
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.
|
java.lang.Boolean |
getIgnoreRequestCacheControl()
Ignore client's cache control headers when fetching or storing from and to the
cache.
|
java.lang.Long |
getMaxCacheSize()
Max size, in bytes, of the cache.
|
java.lang.Long |
getMaxObjectSize()
Maximum size of an object to store in the cache.
|
java.util.List<java.lang.String> |
getMimeTypesBlockGroupPaths()
Blocklist string group of non-cacheable mime types.
|
java.util.List<java.lang.String> |
getMimeTypesBlockLists()
Blocklist of non-cacheable mime types.
|
java.util.List<java.lang.String> |
getMimeTypesGroupPaths()
Allowlist string group of cacheable mime types.
|
java.util.List<java.lang.String> |
getMimeTypesList()
Allowlist of cacheable mime types.
|
java.lang.Long |
getMinObjectSize()
Minimum size of an object to store in the cache.
|
java.lang.Boolean |
getQueryCacheable()
Allow caching of objects whose URI included a query argument.
|
ALBPathMatch |
getUriNonCacheable() |
java.lang.Boolean |
getXcacheHeader()
Add an X-Cache header to content served from cache, which indicates to the
client that the object was served from an intermediate cache.
|
int |
hashCode() |
void |
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.
|
void |
setAggressive(java.lang.Boolean aggressive)
Enable/disable caching objects without Cache-Control headers.
|
void |
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.
|
void |
setDefaultExpire(java.lang.Long defaultExpire)
Default expiration time of cache objects received from the server without a
Cache-Control expiration header.
|
void |
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).
|
void |
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.
|
void |
setIgnoreRequestCacheControl(java.lang.Boolean ignoreRequestCacheControl)
Ignore client's cache control headers when fetching or storing from and to the
cache.
|
void |
setMaxCacheSize(java.lang.Long maxCacheSize)
Max size, in bytes, of the cache.
|
void |
setMaxObjectSize(java.lang.Long maxObjectSize)
Maximum size of an object to store in the cache.
|
void |
setMimeTypesBlockGroupPaths(java.util.List<java.lang.String> mimeTypesBlockGroupPaths)
Blocklist string group of non-cacheable mime types.
|
void |
setMimeTypesBlockLists(java.util.List<java.lang.String> mimeTypesBlockLists)
Blocklist of non-cacheable mime types.
|
void |
setMimeTypesGroupPaths(java.util.List<java.lang.String> mimeTypesGroupPaths)
Allowlist string group of cacheable mime types.
|
void |
setMimeTypesList(java.util.List<java.lang.String> mimeTypesList)
Allowlist of cacheable mime types.
|
void |
setMinObjectSize(java.lang.Long minObjectSize)
Minimum size of an object to store in the cache.
|
void |
setQueryCacheable(java.lang.Boolean queryCacheable)
Allow caching of objects whose URI included a query argument.
|
void |
setUriNonCacheable(ALBPathMatch uriNonCacheable) |
void |
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.
|
java.lang.String |
toString() |
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public ALBHttpCacheConfig()
protected ALBHttpCacheConfig(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.lang.Boolean getAgeHeader()
public void setAgeHeader(java.lang.Boolean ageHeader)
ageHeader - New value for the property.public java.lang.Boolean getAggressive()
public void setAggressive(java.lang.Boolean aggressive)
aggressive - New value for the property.public java.lang.Boolean getDateHeader()
public void setDateHeader(java.lang.Boolean dateHeader)
dateHeader - New value for the property.public java.lang.Long getDefaultExpire()
public void setDefaultExpire(java.lang.Long defaultExpire)
defaultExpire - New value for the property.public java.lang.Boolean getEnabled()
public void setEnabled(java.lang.Boolean enabled)
enabled - New value for the property.public java.lang.Boolean getHeuristicExpire()
public void setHeuristicExpire(java.lang.Boolean heuristicExpire)
heuristicExpire - New value for the property.public java.lang.Boolean getIgnoreRequestCacheControl()
public void setIgnoreRequestCacheControl(java.lang.Boolean ignoreRequestCacheControl)
ignoreRequestCacheControl - New value for the property.public java.lang.Long getMaxCacheSize()
public void setMaxCacheSize(java.lang.Long maxCacheSize)
maxCacheSize - New value for the property.public java.lang.Long getMaxObjectSize()
public void setMaxObjectSize(java.lang.Long maxObjectSize)
maxObjectSize - New value for the property.public java.util.List<java.lang.String> getMimeTypesBlockGroupPaths()
public void setMimeTypesBlockGroupPaths(java.util.List<java.lang.String> mimeTypesBlockGroupPaths)
mimeTypesBlockGroupPaths - New value for the property.public java.util.List<java.lang.String> getMimeTypesBlockLists()
public void setMimeTypesBlockLists(java.util.List<java.lang.String> mimeTypesBlockLists)
mimeTypesBlockLists - New value for the property.public java.util.List<java.lang.String> getMimeTypesGroupPaths()
public void setMimeTypesGroupPaths(java.util.List<java.lang.String> mimeTypesGroupPaths)
mimeTypesGroupPaths - New value for the property.public java.util.List<java.lang.String> getMimeTypesList()
public void setMimeTypesList(java.util.List<java.lang.String> mimeTypesList)
mimeTypesList - New value for the property.public java.lang.Long getMinObjectSize()
public void setMinObjectSize(java.lang.Long minObjectSize)
minObjectSize - New value for the property.public java.lang.Boolean getQueryCacheable()
public void setQueryCacheable(java.lang.Boolean queryCacheable)
queryCacheable - New value for the property.public ALBPathMatch getUriNonCacheable()
public void setUriNonCacheable(ALBPathMatch uriNonCacheable)
uriNonCacheable - New value for the property.public java.lang.Boolean getXcacheHeader()
public void setXcacheHeader(java.lang.Boolean xcacheHeader)
xcacheHeader - New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType in interface com.vmware.vapi.bindings.StaticStructurepublic com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue in interface com.vmware.vapi.bindings.Structureprotected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate in interface com.vmware.vapi.bindings.StaticStructurepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in interface com.vmware.vapi.bindings.StaticStructuretoString in class java.lang.Objectpublic boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf in interface com.vmware.vapi.bindings.Structurepublic <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo in interface com.vmware.vapi.bindings.Structurepublic void _setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField in interface com.vmware.vapi.bindings.StaticStructurepublic com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField in interface com.vmware.vapi.bindings.StaticStructurepublic java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames in interface com.vmware.vapi.bindings.StaticStructurepublic static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType instance representing the static bindings
type for this Structure.public java.lang.String _getCanonicalName()
_getCanonicalName in interface com.vmware.vapi.bindings.Structurepublic static java.lang.String _getCanonicalTypeName()
_getCanonicalName().public static ALBHttpCacheConfig _newInstance(com.vmware.vapi.data.StructValue structValue)
structValue - the source of the data contained in the binding object. Could
contain more data than fields of this class can describe i.e.
newer version of the binding object. Could be null.StructTypepublic static ALBHttpCacheConfig _newInstance2(com.vmware.vapi.data.StructValue structValue)