public static class ResponseHeaders.SetCookie
extends java.lang.Object
'Set-Cookie' header value specified by RFC6265 and
use in method ResponseHeaders.addCookie(SetCookie).
It is mutable and fluent builder.
| Constructor | Description |
|---|---|
SetCookie(java.lang.String name,
java.lang.String value) |
Creates new instance.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.String |
toString() |
Returns content of this instance as a 'Set-Cookie:' header value specified
by RFC6265.
|
public SetCookie(java.lang.String name,
java.lang.String value)
name - a cookie name.value - a cookie value.public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 Oracle Corporation. All rights reserved.