@StableMinor(version="12.4", sinceVersion="4.0") public class CookieUtil extends Object
Constructor and Description |
---|
CookieUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addLumisAppCookie(HttpServletRequest request,
HttpServletResponse response) |
static void |
addLumisUserCookies(HttpServletRequest request,
HttpServletResponse response)
Adds lumis user information cookies.
|
static void |
addLumisUserCookies(IServiceInterfaceRequest request,
IServiceInterfaceResponse response)
Adds lumis user information cookies.
|
static void |
deleteAutoAdministrationCookies(HttpServletRequest request,
HttpServletResponse response)
Delete lumis auto-administration cookies.
|
static void |
deleteCookie(HttpServletRequest request,
HttpServletResponse response,
String name)
Deletes the cookie if it exists in the request.
|
static void |
deleteCookie(IServiceInterfaceRequest request,
IServiceInterfaceResponse response,
String name)
Deletes the cookie if it exists in the request.
|
static void |
deleteLumisStandardCookies(HttpServletRequest request,
HttpServletResponse response)
Delete lumis standard cookies.
|
static void |
deleteLumisStandardCookies(IServiceInterfaceRequest request,
IServiceInterfaceResponse response)
Delete lumis standard cookies.
|
static void |
deleteLumisUserCookies(HttpServletRequest request,
HttpServletResponse response)
Delete lumis user information cookies.
|
static void |
deleteLumisUserCookies(IServiceInterfaceRequest request,
IServiceInterfaceResponse response)
Delete lumis user information cookies.
|
static String |
getCookie(HttpServletRequest request,
String name)
Given a cookie name, the cookie value if exists in the request object is
returned.
|
static String |
getCookie(IServiceInterfaceRequest request,
String name)
Given a cookie name, the cookie value if exists in the request object is
returned.
|
static void |
setCookie(HttpServletRequest request,
HttpServletResponse response,
String name,
String value)
Sets a cookie value.
|
static void |
setCookie(HttpServletRequest request,
HttpServletResponse response,
String name,
String value,
Date expiration)
Sets a cookie value.
|
static void |
setCookie(IServiceInterfaceRequest request,
IServiceInterfaceResponse response,
String name,
String value)
Sets a cookie value.
|
public static String getCookie(IServiceInterfaceRequest request, String name)
request
- the request.response
- the response.name
- the cookie name.public static String getCookie(HttpServletRequest request, String name)
request
- the request.response
- the response.name
- the cookie name.public static void setCookie(IServiceInterfaceRequest request, IServiceInterfaceResponse response, String name, String value)
request
- the request.response
- the response.name
- the cookie name.value
- the cookie value.public static void setCookie(HttpServletRequest request, HttpServletResponse response, String name, String value)
request
- the request.response
- the response.name
- the cookie name.value
- the cookie value.public static void setCookie(HttpServletRequest request, HttpServletResponse response, String name, String value, Date expiration)
request
- the request.response
- the response.name
- the cookie name.value
- the cookie value.expiration
- the cookie expiration date.public static void deleteCookie(IServiceInterfaceRequest request, IServiceInterfaceResponse response, String name)
request
- the request.response
- the response.name
- the cookie name.public static void deleteCookie(HttpServletRequest request, HttpServletResponse response, String name)
request
- the request.response
- the response.name
- the cookie name.public static void deleteLumisUserCookies(IServiceInterfaceRequest request, IServiceInterfaceResponse response)
request
- the request.response
- the response.public static void deleteLumisUserCookies(HttpServletRequest request, HttpServletResponse response)
request
- the request.response
- the response.public static void addLumisAppCookie(HttpServletRequest request, HttpServletResponse response)
public static void addLumisUserCookies(IServiceInterfaceRequest request, IServiceInterfaceResponse response) throws PortalException
request
- the request.response
- the response.PortalException
- if it was not possible to obtain the data
necessary to set the cookies.public static void addLumisUserCookies(HttpServletRequest request, HttpServletResponse response) throws PortalException
request
- the request.response
- the response.PortalException
- if it was not possible to obtain the data
necessary to set the cookies.public static void deleteLumisStandardCookies(IServiceInterfaceRequest request, IServiceInterfaceResponse response)
request
- the request.response
- the response.public static void deleteLumisStandardCookies(HttpServletRequest request, HttpServletResponse response)
request
- the request.response
- the response.public static void deleteAutoAdministrationCookies(HttpServletRequest request, HttpServletResponse response)
request
- the request.response
- the response.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.