Class SetCookieCodec.SetCookie
- All Implemented Interfaces:
Cookie,Header,Headers.SetCookie,SetCookie,SetCookie.Configurator
- Enclosing class:
SetCookieCodec
Headers.SetCookie header implemetation.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.inverno.mod.http.base.internal.header.ParameterizedHeader
ParameterizedHeader.AbstractBuilder<A extends ParameterizedHeader,B extends ParameterizedHeader.AbstractBuilder<A, B>> Nested classes/interfaces inherited from interface io.inverno.mod.http.base.header.Headers.SetCookie
Headers.SetCookie.SameSitePolicyNested classes/interfaces inherited from interface io.inverno.mod.http.base.header.SetCookie
SetCookie.Configurator -
Field Summary
Fields inherited from class io.inverno.mod.http.base.internal.header.ParameterizedHeader
parameterizedValue, parametersFields inherited from class io.inverno.mod.http.base.internal.header.GenericHeader
headerName, headerValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the cookie domain attribute.expires(ZonedDateTime expires) Sets the cookie expires attribute.Returns the cookie max age.Returns the cookie expires value.Returns the cookie max age.getName()Returns the cookie name.getPath()Returns the cookie path.Returns cookie's same site attribute.getValue()Returns the cookie value.httpOnly(boolean httpOnly) Sets the cookie http only flag attribute.Returns the cookie HTTP only flag.isSecure()Returns the cookie secure flag.maxAge(int maxAge) Sets the cookie max age attribute in seconds.Sets the cookie name.Sets the cookie path attribute.sameSite(Headers.SetCookie.SameSitePolicy sameSite) Sets the cookie same site flag attribute.secure(boolean secure) Sets the cookie secure flag attribute.Sets the cookie value.Methods inherited from class io.inverno.mod.http.base.internal.header.ParameterizedHeader
equals, getParameterizedValue, getParameters, hashCodeMethods inherited from class io.inverno.mod.http.base.internal.header.GenericHeader
getHeaderName, getHeaderValue, setHeaderValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.inverno.mod.http.base.header.Header
getHeaderName, getHeaderValue
-
Constructor Details
-
SetCookie
public SetCookie()Creates an empty set-cookie header.
-
-
Method Details
-
getName
Description copied from interface:Headers.SetCookieReturns the cookie name.
- Specified by:
getNamein interfaceCookie- Specified by:
getNamein interfaceHeaders.SetCookie- Returns:
- the cookie name or null
-
getValue
Description copied from interface:Headers.SetCookieReturns the cookie value.
- Specified by:
getValuein interfaceCookie- Specified by:
getValuein interfaceHeaders.SetCookie- Returns:
- the cookie value or null
-
getExpires
Description copied from interface:Headers.SetCookieReturns the cookie expires value.
- Specified by:
getExpiresin interfaceHeaders.SetCookie- Specified by:
getExpiresin interfaceSetCookie- Returns:
- the cookie expires value or null
-
getMaxAge
Description copied from interface:Headers.SetCookieReturns the cookie max age.
- Specified by:
getMaxAgein interfaceHeaders.SetCookie- Specified by:
getMaxAgein interfaceSetCookie- Returns:
- the cookie max age or null
-
getDomain
Description copied from interface:Headers.SetCookieReturns the cookie max age.
- Specified by:
getDomainin interfaceHeaders.SetCookie- Specified by:
getDomainin interfaceSetCookie- Returns:
- the cookie max age or null
-
getPath
Description copied from interface:Headers.SetCookieReturns the cookie path.
- Specified by:
getPathin interfaceHeaders.SetCookie- Specified by:
getPathin interfaceSetCookie- Returns:
- the cookie path or null
-
isSecure
Description copied from interface:Headers.SetCookieReturns the cookie secure flag.
- Specified by:
isSecurein interfaceHeaders.SetCookie- Specified by:
isSecurein interfaceSetCookie- Returns:
- the cookie secure flag or null
-
isHttpOnly
Description copied from interface:Headers.SetCookieReturns the cookie HTTP only flag.
- Specified by:
isHttpOnlyin interfaceHeaders.SetCookie- Specified by:
isHttpOnlyin interfaceSetCookie- Returns:
- the cookie HTTP only flag or null
-
getSameSite
Description copied from interface:Headers.SetCookieReturns cookie's same site attribute.
- Specified by:
getSameSitein interfaceHeaders.SetCookie- Specified by:
getSameSitein interfaceSetCookie- Returns:
- the same site attribute or null
-
name
Description copied from interface:SetCookie.ConfiguratorSets the cookie name.
- Specified by:
namein interfaceSetCookie.Configurator- Parameters:
name- a cookie name- Returns:
- the configurator
-
value
Description copied from interface:SetCookie.ConfiguratorSets the cookie value.
- Specified by:
valuein interfaceSetCookie.Configurator- Parameters:
value- a cookie value- Returns:
- the configurator
-
expires
Description copied from interface:SetCookie.ConfiguratorSets the cookie expires attribute.
Note that the resulting date time will be serialized at GMT time zone.
- Specified by:
expiresin interfaceSetCookie.Configurator- Parameters:
expires- the expires date time- Returns:
- the configurator
-
maxAge
Description copied from interface:SetCookie.ConfiguratorSets the cookie max age attribute in seconds.
- Specified by:
maxAgein interfaceSetCookie.Configurator- Parameters:
maxAge- the cookie max age- Returns:
- the configurator
-
domain
Description copied from interface:SetCookie.ConfiguratorSets the cookie domain attribute.
- Specified by:
domainin interfaceSetCookie.Configurator- Parameters:
domain- the cookie domain- Returns:
- the configurator
-
path
Description copied from interface:SetCookie.ConfiguratorSets the cookie path attribute.
- Specified by:
pathin interfaceSetCookie.Configurator- Parameters:
path- the cookie path- Returns:
- the configurator
-
secure
Description copied from interface:SetCookie.ConfiguratorSets the cookie secure flag attribute.
- Specified by:
securein interfaceSetCookie.Configurator- Parameters:
secure- the cookie secure flag- Returns:
- the configurator
-
httpOnly
Description copied from interface:SetCookie.ConfiguratorSets the cookie http only flag attribute.
- Specified by:
httpOnlyin interfaceSetCookie.Configurator- Parameters:
httpOnly- the cookie http only flag- Returns:
- the configurator
-
sameSite
Description copied from interface:SetCookie.ConfiguratorSets the cookie same site flag attribute.
- Specified by:
sameSitein interfaceSetCookie.Configurator- Parameters:
sameSite- a same site policy- Returns:
- the configurator
-