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 StringCLOSE_WINDOW_PARAMETERstatic StringCLOSE_WINDOW_URL_PARAMETERstatic StringCRYPTED_PARAM_NAME
-
Constructor Summary
Constructors Constructor Description RequestHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetCookieValue(javax.servlet.http.HttpServletRequest request, String key)static voidinitRequestAttributes(ContentContext ctx)static booleanisCookie(javax.servlet.http.HttpServletRequest request, String key, String value)static voidsetCookieValue(javax.servlet.http.HttpServletResponse response, String key, String value)static voidsetCookieValue(javax.servlet.http.HttpServletResponse response, String key, String value, int expiry)static voidsetCookieValue(javax.servlet.http.HttpServletResponse response, String key, String value, int expiry, String path)static voidsetJSONType(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:
ServiceExceptionException
-
-