|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.cadx.common.util.ServletSessionCookieUtilities
This class provides convenience methods to save and retrieve key/value pairs using ServletSessionCookie object model.
Field Summary | |
static String |
ADDITIONAL_FORM_DATA_TO_REFERER_COOKIE_KEY
|
static String |
ON_RELOAD_FORM_DATA_COOKIE_KEY
|
static String |
ON_SUBMIT_FORM_DATA_COOKIE_KEY
|
private static String |
RESOURCE
|
Constructor Summary | |
ServletSessionCookieUtilities()
|
Method Summary | |
private static Properties |
cleanupNotSerializableMappings(HTTPState a_HTTPState,
Properties formData)
Remove any non-serialization objects from the formData as it causes exception later in ServletSessionCookieManager.saveCookies() call. |
static String |
createCookieKey(HTTPState a_HTTPState,
String key)
Create a session cookie key for the specified key in the standard page key format. |
static Properties |
getFormDataFromSessionCookie(HTTPState a_HTTPState,
String hiddenFieldsCookieId)
Get the saved FormData from the specified ServletSessionCookie for the ON_RELOAD_FORM_DATA_COOKIE_KEY key. |
static Properties |
getFormDataFromSessionCookie(HTTPState a_HTTPState,
String cookieId,
String cookieKey)
For the specified cookieKey, Get the FormData object from the specified cookieId ServletSessionCookie. |
static Object |
getValueFromSavedCookie(HTTPState a_HTTPState,
String cookieId,
String cookieKey)
Get the value part of the key/value pair for the specified key from the saved session cookie for the specified cookie id. |
static void |
removeCookie(HTTPState a_HTTPState,
String cookieId)
|
static Object |
removeFormDataParamMapping(HTTPState a_HTTPState,
String cookieId,
String cookieKey,
String paramKey)
For the specified cookieId ServletSessionCookie & specified cookieKey, remove the key mapping from it's FormData Properties object for the specified paramKey. |
static Object |
removeKeyMappingFromSavedCookie(HTTPState a_HTTPState,
String cookieId,
String cookieKey)
Remove the key mapping for the specified key from the saved session cookie for the specified cookie id. |
static void |
saveFormDataInSessionCookie(HTTPState a_HTTPState,
String cookieId)
Save the current page's current FormData in the specified cookieid ServletSessionCookie for the on reload FormData key/value pair. |
static void |
saveFormDataInSessionCookie(HTTPState a_HTTPState,
String cookieId,
String cookieKey,
Properties formData)
For the specified cookieId & cookieKey, save the specified FormData in a ServletSessionCookie. |
static void |
saveKeyAndValueInSessionCookie(HTTPState a_HTTPState,
String cookieId,
String key,
Object cookieValue)
For the specified cookie id, create the key/value pair using the specified key & value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
public static final String ON_RELOAD_FORM_DATA_COOKIE_KEY
public static final String ON_SUBMIT_FORM_DATA_COOKIE_KEY
public static final String ADDITIONAL_FORM_DATA_TO_REFERER_COOKIE_KEY
Constructor Detail |
public ServletSessionCookieUtilities()
Method Detail |
public static void saveKeyAndValueInSessionCookie(HTTPState a_HTTPState, String cookieId, String key, Object cookieValue)
public static String createCookieKey(HTTPState a_HTTPState, String key)
public static Object getValueFromSavedCookie(HTTPState a_HTTPState, String cookieId, String cookieKey)
public static void saveFormDataInSessionCookie(HTTPState a_HTTPState, String cookieId)
public static void saveFormDataInSessionCookie(HTTPState a_HTTPState, String cookieId, String cookieKey, Properties formData)
public static Properties getFormDataFromSessionCookie(HTTPState a_HTTPState, String hiddenFieldsCookieId)
public static Properties getFormDataFromSessionCookie(HTTPState a_HTTPState, String cookieId, String cookieKey)
public static void removeCookie(HTTPState a_HTTPState, String cookieId)
public static Object removeKeyMappingFromSavedCookie(HTTPState a_HTTPState, String cookieId, String cookieKey)
public static Object removeFormDataParamMapping(HTTPState a_HTTPState, String cookieId, String cookieKey, String paramKey)
private static Properties cleanupNotSerializableMappings(HTTPState a_HTTPState, Properties formData)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |