ariba.ui.aribaweb.core
Class AWRequestUtil

java.lang.Object
  extended by ariba.ui.aribaweb.core.AWRequestUtil

public class AWRequestUtil
extends java.lang.Object


Field Summary
static char BeginQueryChar
           
static char Equals
           
static char QueryDelimiter
           
static java.lang.String TokenizerDelim
           
 
Constructor Summary
AWRequestUtil()
           
 
Method Summary
static java.lang.String addDirectActionRequestHandlerKey(java.lang.String url)
          Adds the AWConcreteApplication.DirectActionRequestHandlerKey to the given url and returns the result.
static void addQueryParam(FastStringBuffer url, java.lang.String name, java.lang.String value)
           
static java.lang.String addQueryParam(java.lang.String url, java.lang.String name, java.lang.String value)
           
static void addRedirectParam(AWFormRedirect redirect, FastStringBuffer url, java.lang.String name, java.lang.String value, boolean asQueryParam)
           
static java.lang.String applicationBaseUrl(AWRequestContext requestContext)
           
static java.lang.String getRequestUrl(AWRequestContext requestContext)
          validates and returns the request URL.
static java.lang.String getRequestUrlMinusQueryString(AWRequestContext requestContext)
           
static boolean isGet(AWRequestContext requestContext)
           
static java.util.Map parseParameters(java.lang.String url)
           
static java.lang.String urlKey(AWRequestContext requestContext)
          Returns the URL key for the given request context.
static java.lang.String urlKeyDelimited(AWRequestContext requestContext)
          Returns the "delimited URL key" i.e.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

AWRequestUtil

public AWRequestUtil()
Method Detail

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.