Package org.apache.juneau.http.header
Class CacheControl
java.lang.Object
org.apache.juneau.http.header.HttpHeaderBean
org.apache.juneau.http.header.HttpStringHeader
org.apache.juneau.http.header.CacheControl
- All Implemented Interfaces:
HttpHeader
Represents an HTTP Cache-Control header.
Used to specify directives that must be obeyed by all caching mechanisms along the request-response chain.
See Also:
- Since:
- 9.2.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFluent builder for assembling an HTTPCache-Control header value. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCacheControl(String value) Constructor with an eager value.CacheControl(Supplier<String> valueSupplier) Constructor with a lazy value supplier. -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheControl.Buildercreate()Creates a new emptyCacheControl.Builder.static CacheControlStatic factory method with an eager value.static CacheControlStatic factory method with a lazy value supplier.Methods inherited from class org.apache.juneau.http.header.HttpStringHeader
of, of, ofPairMethods inherited from class org.apache.juneau.http.header.HttpHeaderBean
equals, equalsIgnoreCase, getName, getValue, hashCode, toString
-
Field Details
-
NAME
The header name- See Also:
-
-
Constructor Details
-
CacheControl
Constructor with an eager value.- Parameters:
value- The header value. May benull .
-
CacheControl
Constructor with a lazy value supplier.- Parameters:
valueSupplier- Supplier for the header value. Must not benull .
-
-
Method Details
-
of
Static factory method with an eager value.- Parameters:
value- The header value. May benull .- Returns:
- A new instance. Never
null .
-
of
Static factory method with a lazy value supplier.- Parameters:
valueSupplier- Supplier for the header value. Must not benull .- Returns:
- A new instance. Never
null .
-
create
Creates a new emptyCacheControl.Builder.- Returns:
- A new builder. Never
null .
-