|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.dataengine.RequestManager
Helper class for working with HttpServletRequest attributes and parameters.
Field Summary | |
static String |
className
Class name. |
Constructor Summary | |
RequestManager()
|
Method Summary | |
static Object |
getAttribute(String key,
javax.servlet.http.HttpServletRequest request)
Gets an attribute out of the request. |
static IMagicRequest |
getCurrentMagicRequest(javax.servlet.http.HttpServletRequest req)
Gets the "current" magic request. |
static String |
getParameter(String key,
javax.servlet.http.HttpServletRequest request)
Gets an parameter out of the request. |
static String[] |
getParameterValues(String key,
javax.servlet.http.HttpServletRequest request)
Gets a parameters out of the request. |
static Object |
getPreviousAttribute(String key,
javax.servlet.http.HttpServletRequest request)
Gets a non persistent attribute from the previous request. |
static double |
getUniqueMagicKey(javax.servlet.http.HttpServletRequest request)
Return a # unique for this request that is used as the key for the magic request. |
static byte |
getWindowType(javax.servlet.http.HttpServletRequest req)
Gets the current window type (constants are defined in IDataEngine) |
static boolean |
isLauchedFromBuilder(javax.servlet.http.HttpServletRequest req)
Checks if the current application was launched from the builder |
static boolean |
isOperationEditingAllowed(javax.servlet.http.HttpServletRequest req)
Checks if the current application should have editable operations |
static Object |
removeAttribute(String key,
javax.servlet.http.HttpServletRequest request)
Removes an attribute from the request |
static void |
setGroupAttribute(String key,
Object value,
javax.servlet.http.HttpServletRequest request)
Sets an attribute on the request that will be persisted for a given group of requests. |
static void |
setMode(String mode,
javax.servlet.http.HttpServletRequest request)
Sets the current mode of the request. |
static void |
setPageAttribute(String key,
Object value,
javax.servlet.http.HttpServletRequest request)
Sets an attribute on the request that is associated with this page. |
static void |
setPersistentAttribute(String key,
Object value,
javax.servlet.http.HttpServletRequest request)
Sets an attribute on the request that will be persisted. |
static void |
setPreviousAttribute(String name,
Object value,
javax.servlet.http.HttpServletRequest request)
Puts an attribute from the previous request into map. |
static void |
setTransientAttribute(String key,
Object value,
javax.servlet.http.HttpServletRequest request)
Sets an attribute on the request that will not be automatically transferred to another request. |
static void |
setWindowType(byte windowType,
javax.servlet.http.HttpServletRequest req)
Sets the current window type (constants are defined in IDataEngine) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String className
Constructor Detail |
public RequestManager()
Method Detail |
public static Object getAttribute(String key, javax.servlet.http.HttpServletRequest request)
public static IMagicRequest getCurrentMagicRequest(javax.servlet.http.HttpServletRequest req)
public static String getParameter(String key, javax.servlet.http.HttpServletRequest request)
public static String[] getParameterValues(String key, javax.servlet.http.HttpServletRequest request)
public static Object getPreviousAttribute(String key, javax.servlet.http.HttpServletRequest request)
public static double getUniqueMagicKey(javax.servlet.http.HttpServletRequest request)
public static byte getWindowType(javax.servlet.http.HttpServletRequest req)
public static boolean isLauchedFromBuilder(javax.servlet.http.HttpServletRequest req)
public static boolean isOperationEditingAllowed(javax.servlet.http.HttpServletRequest req)
public static Object removeAttribute(String key, javax.servlet.http.HttpServletRequest request)
public static void setGroupAttribute(String key, Object value, javax.servlet.http.HttpServletRequest request)
public static void setMode(String mode, javax.servlet.http.HttpServletRequest request)
public static void setPageAttribute(String key, Object value, javax.servlet.http.HttpServletRequest request)
public static void setPersistentAttribute(String key, Object value, javax.servlet.http.HttpServletRequest request)
public static void setPreviousAttribute(String name, Object value, javax.servlet.http.HttpServletRequest request)
name
- a String specifying the name of the attributevalue
- the Object to be storedpublic static void setTransientAttribute(String key, Object value, javax.servlet.http.HttpServletRequest request)
public static void setWindowType(byte windowType, javax.servlet.http.HttpServletRequest req) throws CMException
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |