public class SetCookie extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SetCookie.Builder
A fluent API builder for
SetCookie. |
| Modifier and Type | Method and 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.
|
public static SetCookie.Builder builder(String name, String value)
name - a cookie name.value - a cookie value.public static SetCookie create(String name, String value)
name - a cookie name.value - a cookie value.Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.