Package org.javlo.helper
Class RequestHelper
- java.lang.Object
-
- org.javlo.helper.RequestHelper
-
public class RequestHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLOSE_WINDOW_PARAMETER
static String
CLOSE_WINDOW_URL_PARAMETER
static String
CRYPTED_PARAM_NAME
-
Constructor Summary
Constructors Constructor Description RequestHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getCookieValue(javax.servlet.http.HttpServletRequest request, String key)
static void
initRequestAttributes(ContentContext ctx)
static boolean
isCookie(javax.servlet.http.HttpServletRequest request, String key, String value)
static void
setCookieValue(javax.servlet.http.HttpServletResponse response, String key, String value)
static void
setCookieValue(javax.servlet.http.HttpServletResponse response, String key, String value, int expiry)
static void
setCookieValue(javax.servlet.http.HttpServletResponse response, String key, String value, int expiry, String path)
static void
setJSONType(javax.servlet.http.HttpServletResponse response)
-
-
-
Field Detail
-
CRYPTED_PARAM_NAME
public static final String CRYPTED_PARAM_NAME
- See Also:
- Constant Field Values
-
CLOSE_WINDOW_PARAMETER
public static final String CLOSE_WINDOW_PARAMETER
- See Also:
- Constant Field Values
-
CLOSE_WINDOW_URL_PARAMETER
public static final String CLOSE_WINDOW_URL_PARAMETER
- See Also:
- Constant Field Values
-
-
Method Detail
-
isCookie
public static boolean isCookie(javax.servlet.http.HttpServletRequest request, String key, String value)
-
getCookieValue
public static String getCookieValue(javax.servlet.http.HttpServletRequest request, String key)
-
setCookieValue
public static void setCookieValue(javax.servlet.http.HttpServletResponse response, String key, String value, int expiry, String path)
-
setCookieValue
public static void setCookieValue(javax.servlet.http.HttpServletResponse response, String key, String value, int expiry)
-
setCookieValue
public static void setCookieValue(javax.servlet.http.HttpServletResponse response, String key, String value)
-
setJSONType
public static final void setJSONType(javax.servlet.http.HttpServletResponse response)
-
initRequestAttributes
public static final void initRequestAttributes(ContentContext ctx) throws ServiceException, Exception
- Throws:
ServiceException
Exception
-
-