Package org.openqa.selenium
Class Cookie.Builder
- java.lang.Object
-
- org.openqa.selenium.Cookie.Builder
-
- Enclosing class:
- Cookie
public static class Cookie.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder(java.lang.String name, java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cookie
build()
Cookie.Builder
domain(java.lang.String host)
Cookie.Builder
expiresOn(java.util.Date expiry)
Cookie.Builder
isHttpOnly(boolean httpOnly)
Cookie.Builder
isSecure(boolean secure)
Cookie.Builder
path(java.lang.String path)
Cookie.Builder
sameSite(java.lang.String sameSite)
-
-
-
Method Detail
-
domain
public Cookie.Builder domain(java.lang.String host)
-
path
public Cookie.Builder path(java.lang.String path)
-
expiresOn
public Cookie.Builder expiresOn(java.util.Date expiry)
-
isSecure
public Cookie.Builder isSecure(boolean secure)
-
isHttpOnly
public Cookie.Builder isHttpOnly(boolean httpOnly)
-
sameSite
public Cookie.Builder sameSite(java.lang.String sameSite)
-
build
public Cookie build()
-
-