ariba.ui.aribaweb.core
Class AWRequestUtil
java.lang.Object
ariba.ui.aribaweb.core.AWRequestUtil
public class AWRequestUtil
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenizerDelim
public static final java.lang.String TokenizerDelim
- See Also:
- Constant Field Values
BeginQueryChar
public static final char BeginQueryChar
- See Also:
- Constant Field Values
QueryDelimiter
public static final char QueryDelimiter
- See Also:
- Constant Field Values
Equals
public static final char Equals
- See Also:
- Constant Field Values
AWRequestUtil
public AWRequestUtil()
isGet
public static boolean isGet(AWRequestContext requestContext)
addQueryParam
public static void addQueryParam(FastStringBuffer url,
java.lang.String name,
java.lang.String value)
addQueryParam
public static java.lang.String addQueryParam(java.lang.String url,
java.lang.String name,
java.lang.String value)
addRedirectParam
public static void addRedirectParam(AWFormRedirect redirect,
FastStringBuffer url,
java.lang.String name,
java.lang.String value,
boolean asQueryParam)
addDirectActionRequestHandlerKey
public static java.lang.String addDirectActionRequestHandlerKey(java.lang.String url)
- Adds the
AWConcreteApplication.DirectActionRequestHandlerKey
to
the given url
and returns the result.
parseParameters
public static java.util.Map parseParameters(java.lang.String url)
applicationBaseUrl
public static java.lang.String applicationBaseUrl(AWRequestContext requestContext)
urlKey
public static java.lang.String urlKey(AWRequestContext requestContext)
- Returns the URL key for the given request context. The URL key
is essentially the web app name + the name of the servlet separated
by a slash (e.g. /Buyer/Main).
- Parameters:
requestContext
-
- Returns:
- URL key
urlKeyDelimited
public static java.lang.String urlKeyDelimited(AWRequestContext requestContext)
- Returns the "delimited URL key" i.e. the URL key with a trailing
slash.
- Parameters:
requestContext
-
- Returns:
- The "delimited URL key"
getRequestUrl
public static java.lang.String getRequestUrl(AWRequestContext requestContext)
- validates and returns the request URL. The validation is checking the url for
the "urlKey" - which is the / form.
If the urlKey is not found, a AWGenericException is thrown.
- Parameters:
requestContext
-
- Returns:
- The request url including any querystring.
getRequestUrlMinusQueryString
public static java.lang.String getRequestUrlMinusQueryString(AWRequestContext requestContext)
AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.