Module io.inverno.mod.http.base
Class SetCookieCodec.SetCookie
java.lang.Object
io.inverno.mod.http.base.internal.header.GenericHeader
io.inverno.mod.http.base.internal.header.ParameterizedHeader
io.inverno.mod.http.base.internal.header.SetCookieCodec.SetCookie
- All Implemented Interfaces:
Cookie,Header,Headers.SetCookie,SetCookie,SetCookie.Configurator
- Enclosing class:
- SetCookieCodec
public static final class SetCookieCodec.SetCookie
extends ParameterizedHeader
implements Headers.SetCookie, SetCookie, SetCookie.Configurator
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.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.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.getValue()Returns the cookie value.httpOnly(boolean httpOnly) Sets the cookie http only flag.Returns the cookie HTTP only flag.isSecure()Returns the cookie secure flag.maxAge(int maxAge) sets the cookie max age in seconds.Sets the cookie name.Sets the cookie path.secure(boolean secure) Sets the cookie secure flag.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- 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
-
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
-
maxAge
Description copied from interface:SetCookie.Configuratorsets the cookie max age 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.
- Specified by:
domainin interfaceSetCookie.Configurator- Parameters:
domain- the cookie domain- Returns:
- the configurator
-
path
Description copied from interface:SetCookie.ConfiguratorSets the cookie path.
- Specified by:
pathin interfaceSetCookie.Configurator- Parameters:
path- the cookie path- Returns:
- the configurator
-
secure
Description copied from interface:SetCookie.ConfiguratorSets the cookie secure flag.
- 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.
- Specified by:
httpOnlyin interfaceSetCookie.Configurator- Parameters:
httpOnly- the cookie http only flag- Returns:
- the configurator
-