|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.util.CookieUtil
@StableMinor(version="6.1", sinceVersion="4.0") public class CookieUtil
Utility methods for cookies manipulation.
Constructor Summary | |
---|---|
CookieUtil()
|
Method Summary | |
---|---|
static void |
addLumisUserCookies(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Adds lumis user information cookies. |
static void |
addLumisUserCookies(IServiceInterfaceRequest request,
IServiceInterfaceResponse response)
Adds lumis user information cookies. |
static void |
deleteCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String name)
Deletes the cookie if it exists in the request. |
static void |
deleteCookie(IServiceInterfaceRequest request,
IServiceInterfaceResponse response,
java.lang.String name)
Deletes the cookie if it exists in the request. |
static void |
deleteLumisStandardCookies(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Delete lumis standard cookies. |
static void |
deleteLumisStandardCookies(IServiceInterfaceRequest request,
IServiceInterfaceResponse response)
Delete lumis standard cookies. |
static void |
deleteLumisUserCookies(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Delete lumis user information cookies. |
static void |
deleteLumisUserCookies(IServiceInterfaceRequest request,
IServiceInterfaceResponse response)
Delete lumis user information cookies. |
static java.lang.String |
getCookie(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
Given a cookie name, the cookie value if exists in the request object is returned. |
static java.lang.String |
getCookie(IServiceInterfaceRequest request,
java.lang.String name)
Given a cookie name, the cookie value if exists in the request object is returned. |
static void |
setCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String name,
java.lang.String value)
Sets a cookie value. |
static void |
setCookie(IServiceInterfaceRequest request,
IServiceInterfaceResponse response,
java.lang.String name,
java.lang.String value)
Sets a cookie value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CookieUtil()
Method Detail |
---|
public static java.lang.String getCookie(IServiceInterfaceRequest request, java.lang.String name)
request
- the request.response
- the response.name
- the cookie name.
public static java.lang.String getCookie(javax.servlet.http.HttpServletRequest request, java.lang.String name)
request
- the request.response
- the response.name
- the cookie name.
public static void setCookie(IServiceInterfaceRequest request, IServiceInterfaceResponse response, java.lang.String name, java.lang.String value)
request
- the request.response
- the response.name
- the cookie name.value
- the cookie value.public static void setCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String name, java.lang.String value)
request
- the request.response
- the response.name
- the cookie name.value
- the cookie value.public static void deleteCookie(IServiceInterfaceRequest request, IServiceInterfaceResponse response, java.lang.String name)
request
- the request.response
- the response.name
- the cookie name.public static void deleteCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.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(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- the request.response
- the 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(javax.servlet.http.HttpServletRequest request, javax.servlet.http.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(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- the request.response
- the response.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |