java.lang.Object
io.helidon.common.http.SetCookie.Builder
- All Implemented Interfaces:
Builder<SetCookie.Builder,
,SetCookie> Supplier<SetCookie>
- Enclosing class:
- SetCookie
public static final class SetCookie.Builder
extends Object
implements Builder<SetCookie.Builder,SetCookie>
A fluent API builder for
SetCookie
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.SetsDomain
parameter.domainAndPath
(URI domainAndPath) SetsDomain
andPath
parameters.SetsExpires
parameter.expires
(ZonedDateTime expires) SetsExpires
parameter.httpOnly
(boolean httpOnly) SetsHttpOnly
parameter.SetsMax-Age
parameter.SetsPath
parameter.sameSite
(SetCookie.SameSite sameSite) TheSameSite
cookie parameter.secure
(boolean secure) SetsSecure
parameter.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<SetCookie.Builder,
SetCookie> - Returns:
- instance of the built type
-
expires
SetsExpires
parameter.- Parameters:
expires
- anExpires
parameter.- Returns:
- Updated instance.
-
expires
SetsExpires
parameter.- Parameters:
expires
- anExpires
parameter.- Returns:
- Updated instance.
-
maxAge
SetsMax-Age
parameter.- Parameters:
maxAge
- anMax-Age
parameter.- Returns:
- Updated instance.
-
domain
SetsDomain
parameter.- Parameters:
domain
- anDomain
parameter.- Returns:
- Updated instance.
-
path
SetsPath
parameter.- Parameters:
path
- anPath
parameter.- Returns:
- Updated instance.
-
domainAndPath
SetsDomain
andPath
parameters.- Parameters:
domainAndPath
- an URI to specifyDomain
andPath
parameters.- Returns:
- Updated instance.
-
secure
SetsSecure
parameter.- Parameters:
secure
- anSecure
parameter.- Returns:
- Updated instance.
-
httpOnly
SetsHttpOnly
parameter.- Parameters:
httpOnly
- anHttpOnly
parameter.- Returns:
- Updated instance.
-
sameSite
TheSameSite
cookie parameter.- Parameters:
sameSite
- same site type to use- Returns:
- updated builder
-