Package | Description |
---|---|
ej.hoka.http |
default HTTP package.
|
Modifier and Type | Method and Description |
---|---|
Cookie.SameSite |
Cookie.getSameSite()
Gets the same site policy.
|
static Cookie.SameSite |
Cookie.SameSite.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Cookie.SameSite[] |
Cookie.SameSite.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
HttpResponse.addCookie(java.lang.String name,
java.lang.String value,
java.lang.String domain,
java.lang.String path,
int maxAge,
java.util.Date expires,
boolean secured,
boolean httpOnly,
Cookie.SameSite sameSite)
Deprecated.
Please use
HttpResponse.addCookie(Cookie) and Cookie.builder() instead of this method. |
Cookie.Builder |
Cookie.Builder.sameSite(Cookie.SameSite sameSite)
SameSite=<samesite-value> Optional
Controls whether a cookie is sent with cross-origin requests, providing some protection against cross-site
request forgery attacks (CSRF). |