Package jakarta.ws.rs.core
Class NewCookie.Builder
- java.lang.Object
-
- jakarta.ws.rs.core.Cookie.AbstractCookieBuilder<NewCookie.AbstractNewCookieBuilder<T>>
-
- jakarta.ws.rs.core.NewCookie.AbstractNewCookieBuilder<NewCookie.Builder>
-
- jakarta.ws.rs.core.NewCookie.Builder
-
- Enclosing class:
- NewCookie
public static class NewCookie.Builder extends NewCookie.AbstractNewCookieBuilder<NewCookie.Builder>
JAX-RSNewCookie
builder class.New Cookie builder provides methods that let you conveniently configure and subsequently build a new
For example:NewCookie
instance.NewCookie cookie = new NewCookie.Builder("name") .path("/") .domain("domain.com") .sameSite(SameSite.LAX) .build();
- Since:
- 3.1
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewCookie
build()
Build a newNewCookie
instance using all the configuration previously specified in this builder.-
Methods inherited from class jakarta.ws.rs.core.NewCookie.AbstractNewCookieBuilder
comment, expiry, httpOnly, maxAge, sameSite, secure
-
Methods inherited from class jakarta.ws.rs.core.Cookie.AbstractCookieBuilder
domain, path, value, version
-
-
-
-
Method Detail
-
build
public NewCookie 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.
-
-