public final class CookieUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
SA_WEB_CLIENT_LAST_USER
Name of the user-cookie.
|
static String |
SA_WEB_CLIENT_LAST_USER_LANGUAGE
Name of the user-language-cookie.
|
Modifier and Type | Method and Description |
---|---|
static String |
getCookieContent(String cookieName)
Reads from a cookie.
|
static String |
getLastLocaleFromCookie()
Reads the last active Locale from a cookie.
|
static AuthenticationInformation |
getLastLoginFromCookie()
Reads the last active user from a cookie.
|
static void |
setCookie(String name,
String content,
int maxAge)
Sets a new cookie.
|
static void |
storeLastLocale(String locale)
Stores a cookie with information about the last active user Locale.
|
static void |
storeLastUser()
Stores a cookie with information about the last active user.
|
public static final String SA_WEB_CLIENT_LAST_USER
public static final String SA_WEB_CLIENT_LAST_USER_LANGUAGE
public static void setCookie(String name, String content, int maxAge)
name
- cookie namecontent
- cookie contentmaxAge
- maximum age of this cookie in secondspublic static String getCookieContent(String cookieName)
cookieName
- name of the cookie to read frompublic static void storeLastUser()
public static AuthenticationInformation getLastLoginFromCookie()
public static void storeLastLocale(String locale)
locale
- like de_DE or en_USpublic static String getLastLocaleFromCookie()
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.