java.lang.Object
jakarta.ws.rs.core.Cookie.AbstractCookieBuilder<NewCookie.AbstractNewCookieBuilder<NewCookie.Builder>>
jakarta.ws.rs.core.NewCookie.AbstractNewCookieBuilder<NewCookie.Builder>
jakarta.ws.rs.core.NewCookie.Builder
- Enclosing class:
NewCookie
JAX-RS
NewCookie
builder class.
New Cookie builder provides methods that let you conveniently configure and subsequently build a new
NewCookie
instance.
NewCookie cookie = new NewCookie.Builder("name") .path("/") .domain("domain.com") .sameSite(SameSite.LAX) .build();
- Since:
- 3.1
-
Constructor Details
-
Builder
Create a new instance.- Parameters:
name
- the name of the cookie.
-
Builder
Create a new instance supplementing the information in the supplied cookie.- Parameters:
cookie
- the cookie to clone.
-
-
Method Details
-
build
Description copied from class:NewCookie.AbstractNewCookieBuilder
Build a newNewCookie
instance using all the configuration previously specified in this builder.- Specified by:
build
in classNewCookie.AbstractNewCookieBuilder<NewCookie.Builder>
- Returns:
- a new
NewCookie
instance.
-