Class CookieConfig
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.gatewayapi.v1.CookieConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<CookieConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class CookieConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<CookieConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
CookieConfig defines the configuration for cookie-based session persistence.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CookieConfig()No args constructor for use in serializationCookieConfig(String lifetimeType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CookieConfigBuilderedit()Map<String,Object>getAdditionalProperties()StringgetLifetimeType()LifetimeType specifies whether the cookie has a permanent or session-based lifetime.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetLifetimeType(String lifetimeType)LifetimeType specifies whether the cookie has a permanent or session-based lifetime.CookieConfigBuildertoBuilder()
-
-
-
Constructor Detail
-
CookieConfig
public CookieConfig()
No args constructor for use in serialization
-
CookieConfig
public CookieConfig(String lifetimeType)
-
-
Method Detail
-
getLifetimeType
public String getLifetimeType()
LifetimeType specifies whether the cookie has a permanent or session-based lifetime. A permanent cookie persists until its specified expiry time, defined by the Expires or Max-Age cookie attributes, while a session cookie is deleted when the current session ends.When set to "Permanent", AbsoluteTimeout indicates the cookie's lifetime via the Expires or Max-Age cookie attributes and is required.
When set to "Session", AbsoluteTimeout indicates the absolute lifetime of the cookie tracked by the gateway and is optional.
Support: Core for "Session" type
Support: Extended for "Permanent" type
-
setLifetimeType
public void setLifetimeType(String lifetimeType)
LifetimeType specifies whether the cookie has a permanent or session-based lifetime. A permanent cookie persists until its specified expiry time, defined by the Expires or Max-Age cookie attributes, while a session cookie is deleted when the current session ends.When set to "Permanent", AbsoluteTimeout indicates the cookie's lifetime via the Expires or Max-Age cookie attributes and is required.
When set to "Session", AbsoluteTimeout indicates the absolute lifetime of the cookie tracked by the gateway and is optional.
Support: Core for "Session" type
Support: Extended for "Permanent" type
-
edit
public CookieConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<CookieConfigBuilder>
-
toBuilder
public CookieConfigBuilder toBuilder()
-
-