public class RequestUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DATE_FORMAT
The Constant DATE_FORMAT.
|
static String |
SAME_SITE_NONE_ATTRIBUTE_VALUE
The Constant SAME_SITE_NONE_ATTRIBUTE_VALUE
|
static String |
TIME_ZONE
The Constant TIME_ZONE.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addCookie(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.Cookie cookie,
String sameSite)
Adds cookie to http servlet response.
|
static String |
getCookie(javax.servlet.http.HttpServletRequest req,
String name)
Read cookie value from the request or returns null.
|
public static final String DATE_FORMAT
public static final String TIME_ZONE
public static final String SAME_SITE_NONE_ATTRIBUTE_VALUE
public static String getCookie(javax.servlet.http.HttpServletRequest req, String name)
req - the incoming requestname - Stringpublic static void addCookie(javax.servlet.http.HttpServletResponse response,
javax.servlet.http.Cookie cookie,
String sameSite)
response - the responsecookie - the cookiesameSite - the same siteCopyright © 2003–2020 eXo Platform SAS. All rights reserved.