Package jakarta.ws.rs.core
Class Cookie.Builder
- Enclosing class:
- Cookie
JAX-RS
Cookie
builder class.
Cookie builder provides methods that let you conveniently configure and subsequently build a new
Cookie
instance.
Cookie cookie = new Cookie.Builder("name") .path("/") .domain("domain.com") .build();
- Since:
- 3.1
-
Constructor Summary
-
Method Summary
Methods inherited from class jakarta.ws.rs.core.Cookie.AbstractCookieBuilder
domain, path, value, version
-
Constructor Details
-
Builder
Create a new instance.- Parameters:
name
- the name of the cookie.
-
-
Method Details
-
build
Description copied from class:Cookie.AbstractCookieBuilder
Build a newCookie
instance using all the configuration previously specified in this builder.- Specified by:
build
in classCookie.AbstractCookieBuilder<Cookie.Builder>
- Returns:
- a new
Cookie
instance.
-