Package io.helidon.common.http
Class SetCookie.Builder
- java.lang.Object
-
- io.helidon.common.http.SetCookie.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetCookie
build()
Build the instance from this builder.SetCookie.Builder
domain(String domain)
SetsDomain
parameter.SetCookie.Builder
domainAndPath(URI domainAndPath)
SetsDomain
andPath
parameters.SetCookie.Builder
expires(Instant expires)
SetsExpires
parameter.SetCookie.Builder
expires(ZonedDateTime expires)
SetsExpires
parameter.SetCookie.Builder
httpOnly(boolean httpOnly)
SetsHttpOnly
parameter.SetCookie.Builder
maxAge(Duration maxAge)
SetsMax-Age
parameter.SetCookie.Builder
path(String path)
SetsPath
parameter.SetCookie.Builder
secure(boolean secure)
SetsSecure
parameter.
-
-
-
Method Detail
-
build
public SetCookie build()
Description copied from interface:Builder
Build the instance from this builder.
-
expires
public SetCookie.Builder expires(ZonedDateTime expires)
SetsExpires
parameter.- Parameters:
expires
- anExpires
parameter.- Returns:
- Updated instance.
-
expires
public SetCookie.Builder expires(Instant expires)
SetsExpires
parameter.- Parameters:
expires
- anExpires
parameter.- Returns:
- Updated instance.
-
maxAge
public SetCookie.Builder maxAge(Duration maxAge)
SetsMax-Age
parameter.- Parameters:
maxAge
- anMax-Age
parameter.- Returns:
- Updated instance.
-
domain
public SetCookie.Builder domain(String domain)
SetsDomain
parameter.- Parameters:
domain
- anDomain
parameter.- Returns:
- Updated instance.
-
path
public SetCookie.Builder path(String path)
SetsPath
parameter.- Parameters:
path
- anPath
parameter.- Returns:
- Updated instance.
-
domainAndPath
public SetCookie.Builder domainAndPath(URI domainAndPath)
SetsDomain
andPath
parameters.- Parameters:
domainAndPath
- an URI to specifyDomain
andPath
parameters.- Returns:
- Updated instance.
-
secure
public SetCookie.Builder secure(boolean secure)
SetsSecure
parameter.- Parameters:
secure
- anSecure
parameter.- Returns:
- Updated instance.
-
httpOnly
public SetCookie.Builder httpOnly(boolean httpOnly)
SetsHttpOnly
parameter.- Parameters:
httpOnly
- anHttpOnly
parameter.- Returns:
- Updated instance.
-
-