java.lang.Object
io.helidon.http.SetCookie
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent API builder forSetCookie
.static enum
The SameSite attribute of the Set-Cookie HTTP response header allows you to declare if your cookie should be restricted to a first-party or same-site context. -
Method Summary
Modifier and TypeMethodDescriptionstatic SetCookie.Builder
Creates a new fluent API builder.static SetCookie
Creates new instance.name()
Gets cookie's name.static SetCookie
Parses new instance ofSetCookie
from the String representation.text()
Text representation of this cookie.toString()
Returns content of this instance as a 'Set-Cookie:' header value specified by RFC6265.
-
Method Details
-
name
Gets cookie's name.- Returns:
- the name.
-
builder
Creates a new fluent API builder.- Parameters:
name
- a cookie name.value
- a cookie value.- Returns:
- a new fluent API builder
-
parse
Parses new instance ofSetCookie
from the String representation.- Parameters:
setCookie
- string representation- Returns:
- new instance
-
text
Text representation of this cookie.- Returns:
- cookie text
-
create
Creates new instance.- Parameters:
name
- a cookie name.value
- a cookie value.- Returns:
- a new instance with just the name and value configured
-
toString
Returns content of this instance as a 'Set-Cookie:' header value specified by RFC6265.
-