Class Cookie.AbstractCookieBuilder<T extends Cookie.AbstractCookieBuilder<T>>
java.lang.Object
jakarta.ws.rs.core.Cookie.AbstractCookieBuilder<T>
- Type Parameters:
T- the current AbstractCookieBuilder type.
- Direct Known Subclasses:
Cookie.Builder, NewCookie.AbstractNewCookieBuilder
- Enclosing class:
Cookie
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Cookiebuild()Build a newCookieinstance using all the configuration previously specified in this builder.Set the domain of the cookie.Set the path of the cookie.private Tself()Set the value of the cookie.version(int version) Set the version of the cookie.
-
Field Details
-
name
-
value
-
version
private int version -
path
-
domain
-
-
Constructor Details
-
AbstractCookieBuilder
Create a new instance.- Parameters:
name- the name of the cookie.
-
-
Method Details
-
value
-
version
Set the version of the cookie. Defaults toCookie.DEFAULT_VERSION- Parameters:
version- the version of the specification to which the cookie complies.- Returns:
- the updated builder instance.
-
path
-
domain
-
self
-
build
Build a newCookieinstance using all the configuration previously specified in this builder.- Returns:
- a new
Cookieinstance. - Throws:
IllegalArgumentException- if name isnull.
-