| Package | Description |
|---|---|
| express.http | |
| express.http.request | |
| express.http.response |
| Modifier and Type | Method and Description |
|---|---|
static Cookie |
CookieFactory.fromString(String cookieString)
Parse an cookie string.
|
Cookie |
Cookie.setExpire(Instant instant)
Set the cookie expire (GMT wherefore Instant)
Default is infinite
|
Cookie |
Cookie.setHttpOnly(boolean httpOnly)
Set the if the cookie shouldn't accessible via JavaScript through the Document.cookie property
Default is false
|
Cookie |
Cookie.setMaxAge(long maxAge)
Set the maximum age for this cookie in ms
Default is infinite
|
Cookie |
Cookie.setName(String name)
Set the cookie name
|
Cookie |
Cookie.setPath(String path)
Set the cookie path, also where the cookie should be send to the server
Default is root (/)
|
Cookie |
Cookie.setSameSite(SameSite sameSite) |
Cookie |
Cookie.setSecure(boolean secure)
Set the if the cookie should be only send via SSL
Default is false
|
Cookie |
Cookie.setValue(String value)
Set the cookie value
|
| Modifier and Type | Method and Description |
|---|---|
static HashMap<String,Cookie> |
CookieFactory.fromStrings(String[] stringCookies)
Parse an list of strings which represents an cookie.
|
| Modifier and Type | Method and Description |
|---|---|
Cookie |
Request.getCookie(String name)
Get a request cookie by name.
|
| Modifier and Type | Method and Description |
|---|---|
HashMap<String,Cookie> |
Request.getCookies()
Return all cookies from this request.
|
| Modifier and Type | Method and Description |
|---|---|
Response |
Response.setCookie(Cookie cookie)
Set an cookie.
|
Copyright © 2019. All rights reserved.