|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ptc.windchill.cadx.common.util.CadxURLUtilities
Field Summary | |
private static char |
AMP_SEPARATOR
|
private static char |
EQUALTO_CHAR
|
static String |
REFERER_URL_COOKIE_KEY
|
static String |
SAVE_REFERER_URL
|
private static EncodingConverter |
staticEncoder
|
private static boolean |
VERBOSE
|
Constructor Summary | |
CadxURLUtilities()
|
Method Summary | |
static String |
appendQueryParamToURL(String URL,
String key,
String value)
Append the specified key-value pair to the specified string. |
private static void |
cleanupRefererPageHiddenFormFields(Properties hiddenFormFields)
Clean up any stale key/value pairs from the referer page's FormData properties to avoid un-desirable behavior. |
static String |
getCadxHtmlUiHomeURL()
|
static String |
getContextURL(HTTPState a_HTTPState,
Object contextObj,
String action)
For the specified context object & the specified action, get the URL with container oid as query string. |
static String |
getContextURL(Object contextObj,
String action)
For the specified context object & the specified action, get the URL |
static String |
getContextURL(Object contextObj,
String action,
Properties parameters)
For the specified context object & the specified action, get the URL for rendering the page. |
static Properties |
getHiddenFields(HTTPState a_HTTPState,
String hiddenFieldsCookieId,
Properties parameters)
Return Properties object to be used as the hidden fields used by redirect services. |
static String |
getMyWorkspaceURL(Object contextObj)
For the specified context object, get the URL for the 'MyWorkspace' action |
static String |
getObjPropsURL(Object contextObj)
For the specified context object, get the URL for the 'ObjProps' action |
static String |
getRefererURL(BasicTemplateProcessor gfp)
Returns the URL for the return page when user Cancels an operation. |
static String |
getRefURLFromSessionCookie(HTTPState a_HTTPState,
String cookieId)
Get the referer URL from the saved session cookie. |
private static boolean |
overrideRefererURL(HTTPState a_HTTPState)
Check to see whther the referer URL can be over-riden. |
static void |
redirectToAnotherPage(HTTPState a_HTTPState,
Properties queryData,
String hiddenFieldsCookieId,
Properties parameters)
Redirect to a URL generated from the passed query data using the RedirectObject's services. |
static void |
redirectToAnotherPage(HTTPState a_HTTPState,
String redirectToURL)
Redirect to the specified URL using the RedirectObject's services. |
static void |
redirectToAnotherPage(HTTPState a_HTTPState,
String redirectToURL,
Properties parameters)
Redirect to the specified URL using the RedirectObject's services. |
static void |
redirectToAnotherPage(HTTPState a_HTTPState,
String redirectToURL,
String hiddenFieldsCookieId,
Properties parameters)
|
static void |
redirectToDefaultRefererPage(BasicTemplateProcessor aBasicTemplateProcessor,
String hiddenFieldsCookieId)
Redirect to the default referer page using the RedirectObject's services. |
static void |
redirectToDefaultRefererPage(BasicTemplateProcessor aBasicTemplateProcessor,
String hiddenFieldsCookieId,
Properties parameters)
Redirect to the default referer page using the RedirectObject's services. |
static void |
redirectToLinkWithinPage(HTTPState a_HTTPState,
String redirectToURL,
Properties parameters)
Redirect to the specified page URL using the RedirectObject's services. |
static void |
redirectToRefererPage(HTTPState a_HTTPState,
String refererURL,
String hiddenFieldsCookieId)
Redirect to the specified URL using the RedirectObject's services. |
static void |
redirectToRefererPage(HTTPState a_HTTPState,
String redirectToURL,
String hiddenFieldsCookieId,
Properties parameters)
Redirect to the specified URL using the RedirectObject's services. |
static void |
redirectToTabURL(HTTPState a_HTTPState,
String redirectToURL,
Properties parameters)
Redirect to the specified tab page URL using the RedirectObject's services. |
private static String |
removeNoObjectKey(String refUrl)
|
static void |
saveRefURLInSessionCookie(HTTPState a_HTTPState,
String cookieId)
For the specified cookieId, save the referer URL in a ServletSessionCookie. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String REFERER_URL_COOKIE_KEY
public static final String SAVE_REFERER_URL
private static boolean VERBOSE
private static EncodingConverter staticEncoder
private static final char AMP_SEPARATOR
private static final char EQUALTO_CHAR
Constructor Detail |
public CadxURLUtilities()
Method Detail |
public static String getCadxHtmlUiHomeURL()
public static String getRefererURL(BasicTemplateProcessor gfp)
public static String getMyWorkspaceURL(Object contextObj)
public static String getObjPropsURL(Object contextObj)
public static void saveRefURLInSessionCookie(HTTPState a_HTTPState, String cookieId)
public static String getRefURLFromSessionCookie(HTTPState a_HTTPState, String cookieId)
private static boolean overrideRefererURL(HTTPState a_HTTPState)
public static void redirectToDefaultRefererPage(BasicTemplateProcessor aBasicTemplateProcessor, String hiddenFieldsCookieId)
public static void redirectToDefaultRefererPage(BasicTemplateProcessor aBasicTemplateProcessor, String hiddenFieldsCookieId, Properties parameters)
public static void redirectToRefererPage(HTTPState a_HTTPState, String refererURL, String hiddenFieldsCookieId)
public static void redirectToRefererPage(HTTPState a_HTTPState, String redirectToURL, String hiddenFieldsCookieId, Properties parameters)
public static void redirectToAnotherPage(HTTPState a_HTTPState, String redirectToURL)
public static void redirectToAnotherPage(HTTPState a_HTTPState, String redirectToURL, Properties parameters)
public static void redirectToAnotherPage(HTTPState a_HTTPState, String redirectToURL, String hiddenFieldsCookieId, Properties parameters)
public static void redirectToAnotherPage(HTTPState a_HTTPState, Properties queryData, String hiddenFieldsCookieId, Properties parameters)
public static String getContextURL(HTTPState a_HTTPState, Object contextObj, String action)
public static String getContextURL(Object contextObj, String action)
public static String getContextURL(Object contextObj, String action, Properties parameters)
public static void redirectToTabURL(HTTPState a_HTTPState, String redirectToURL, Properties parameters)
public static void redirectToLinkWithinPage(HTTPState a_HTTPState, String redirectToURL, Properties parameters)
public static Properties getHiddenFields(HTTPState a_HTTPState, String hiddenFieldsCookieId, Properties parameters)
private static String removeNoObjectKey(String refUrl)
private static void cleanupRefererPageHiddenFormFields(Properties hiddenFormFields)
public static String appendQueryParamToURL(String URL, String key, String value)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |