T - the current AbstractCookieBuilder type.public abstract static class Cookie.AbstractCookieBuilder<T extends Cookie.AbstractCookieBuilder<T>>
extends java.lang.Object
Cookie builder class.| Constructor and Description |
|---|
AbstractCookieBuilder(java.lang.String name)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Cookie |
build()
Build a new
Cookie instance using all the configuration previously specified in this builder. |
T |
domain(java.lang.String domain)
Set the domain of the cookie.
|
T |
path(java.lang.String path)
Set the path of the cookie.
|
T |
value(java.lang.String value)
Set the value of the cookie.
|
T |
version(int version)
Set the version of the cookie.
|
public AbstractCookieBuilder(java.lang.String name)
name - the name of the cookie.public T value(java.lang.String value)
value - the value of the cookie.public T version(int version)
Cookie.DEFAULT_VERSIONversion - the version of the specification to which the cookie complies.public T path(java.lang.String path)
path - the URI path for which the cookie is valid.public T domain(java.lang.String domain)
domain - the host domain for which the cookie is valid.