java.lang.Object
io.helidon.http.SetCookie
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent API builder forSetCookie.static enumThe 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.BuilderCreates a new fluent API builder.static SetCookieCreates new instance.name()Gets cookie's name.static SetCookieParses new instance ofSetCookiefrom 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 ofSetCookiefrom 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.
-