Class ResponseCachingPolicy
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.waa.model.ResponseCachingPolicy
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20211230") public final class ResponseCachingPolicy extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
An object that specifies an HTTP response caching policy.
Note: Objects should always be created or deserialized using theResponseCachingPolicy.Builder
. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theResponseCachingPolicy.Builder
, which maintain a set of all explicitly set fields calledResponseCachingPolicy.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResponseCachingPolicy.Builder
-
Constructor Summary
Constructors Constructor Description ResponseCachingPolicy(Boolean isResponseHeaderBasedCachingEnabled)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponseCachingPolicy.Builder
builder()
Create a new builder.boolean
equals(Object o)
Boolean
getIsResponseHeaderBasedCachingEnabled()
When false, responses will not be cached by the backend based on response headers.int
hashCode()
ResponseCachingPolicy.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
ResponseCachingPolicy
@Deprecated @ConstructorProperties("isResponseHeaderBasedCachingEnabled") public ResponseCachingPolicy(Boolean isResponseHeaderBasedCachingEnabled)
Deprecated.
-
-
Method Detail
-
builder
public static ResponseCachingPolicy.Builder builder()
Create a new builder.
-
toBuilder
public ResponseCachingPolicy.Builder toBuilder()
-
getIsResponseHeaderBasedCachingEnabled
public Boolean getIsResponseHeaderBasedCachingEnabled()
When false, responses will not be cached by the backend based on response headers.When true, responses that contain one of the supported cache control headers will be cached according to the values specified in the cache control headers.
The "X-Accel-Expires" header field sets caching time of a response in seconds. The zero value disables caching for a response. If the value starts with the @ prefix, it sets an absolute time in seconds since Epoch, up to which the response may be cached.
If the header does not include the "X-Accel-Expires" field, parameters of caching may be set in the header fields "Expires" or "Cache-Control".
If the header includes the "Set-Cookie" field, such a response will not be cached.
If the header includes the "Vary" field with the special value "*", such a response will not be cached. If the header includes the "Vary" field with another value, such a response will be cached taking into account the corresponding request header fields.
- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-