Package io.helidon.common.http
Class SetCookie
- java.lang.Object
-
- io.helidon.common.http.SetCookie
-
public class SetCookie extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SetCookie.Builder
A fluent API builder forSetCookie
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SetCookie.Builder
builder(String name, String value)
Creates a new fluent API builder.static SetCookie
create(String name, String value)
Creates new instance.String
toString()
Returns content of this instance as a 'Set-Cookie:' header value specified by RFC6265.
-
-
-
Method Detail
-
builder
public static SetCookie.Builder builder(String name, String value)
Creates a new fluent API builder.- Parameters:
name
- a cookie name.value
- a cookie value.- Returns:
- a new fluent API builder
-
create
public static SetCookie create(String name, String value)
Creates new instance.- Parameters:
name
- a cookie name.value
- a cookie value.- Returns:
- a new instance with just the name and value configured
-
-