ariba.ui.aribaweb.core
Class AWBaseRequest

java.lang.Object
  extended by ariba.ui.aribaweb.util.AWBaseObject
      extended by ariba.ui.aribaweb.core.AWBaseRequest
All Implemented Interfaces:
AWRequest, AWDisposable, AWObject
Direct Known Subclasses:
AWServletRequest

public abstract class AWBaseRequest
extends AWBaseObject
implements AWRequest, AWDisposable


Field Summary
static String AcceptLanguageKey
           
static String AllowFailedComponentRendezvousFormKey
           
static String AWLogFilterListKey
           
static String CharacterEncodingKey
           
static String ContentLengthKey
           
static String ContentTypeKey
           
static String DefaultBrowserLanguage
           
static String InitialRequestId
           
static String IsSessionRendezvousFormKey
           
 
Fields inherited from class ariba.ui.aribaweb.util.AWBaseObject
AribaHashtableClass, AribaVectorClass, ClassClass, EmptyHashtable, EmptyMap, EmptyVector, False, IntegerClass, JavaHashtableClass, JavaMapClass, JavaVectorClass, LogHandling, NullObject, ObjectClass, StringClass, True, UndefinedObject, UndefinedString, UninitializedRealNumber
 
Fields inherited from interface ariba.ui.aribaweb.core.AWRequest
HeaderContentDispositionForMacintosh
 
Constructor Summary
AWBaseRequest()
           
 
Method Summary
 String acceptLanguage()
           
 String applicationNumber()
           
 AWCharacterEncoding characterEncoding()
           
 byte[] content()
           
 int contentLength()
           
 InputStream contentStream()
           
 String contentType()
           
 String cookieValueForKey(String cookieName)
           
 String[] cookieValuesForKey(String cookieName)
           
static AWBaseRequest createInternalRequest(String url, AWBaseRequest originalRequest)
           
static AWBaseRequest createInternalRequest(String url, String applicationNumber)
           
static String decodeString(String string, FastStringBuffer buffer)
          Parse a string that is URL encoded.
 void dispose()
           
 String formValueForKey(AWEncodedString formValueKey)
           
 String formValueForKey(String formValueKey)
           
 String formValueForKey(String formValueKey, boolean ignoresCase)
           
 Map formValues()
           
 String[] formValuesForKey(AWEncodedString formValueKey)
           
 String[] formValuesForKey(String formValueKey)
           
 String[] formValuesForKey(String formValueKey, boolean ignoresCase)
           
 AWEncodedString frameName()
           
 AWBaseRequest getBaseRequest()
           
 javax.servlet.http.HttpSession getSession()
           
 boolean hasFormValueForKey(AWEncodedString formValueKey)
           
 boolean hasFormValueForKey(String formValueKey)
           
 boolean hasFormValueForKey(String formValueKey, boolean ignoresCase)
           
 boolean hasHandler()
           
 void init()
           
 boolean initIsBrowserFirefox()
           
 boolean initIsBrowserMicrosoft()
           
 boolean initIsBrowserSafari()
           
 boolean initisMacintosh()
           
abstract  InputStream inputStream()
           
 boolean isBrowserFirefox()
           
 boolean isBrowserIE55()
           
 boolean isBrowserMicrosoft()
           
 boolean isBrowserSafari()
           
 boolean isMacintosh()
           
 boolean isMultipartEncoded()
           
 boolean isSecureScheme()
           
static Parameters parametersFromUrlEncodedString(String formValuesString)
          Parse CGI form content.
static Map parseUrlEncodedFormValues(String formValuesString)
           
 Locale preferredLocale()
           
abstract  String remoteHost()
           
abstract  String remoteHostAddress()
           
 void removeCookieValue(String cookieName)
           
 String requestId()
           
 List requestLocales()
           
 void resetRequestId()
           
 AWEncodedString responseId()
           
 AWEncodedString senderId()
           
 String[] senderIds()
           
 String sessionId()
           
 String sessionSecureId()
           
 void setCharacterEncoding(AWCharacterEncoding characterEncoding)
           
 String userAgent()
          Returns the HTTP User-Agent field or null if one does not exist.
 
Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject
debugString, ensureFieldValuesClear, getFieldValue, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ariba.ui.aribaweb.core.AWRequest
fileDataForKey, getSession, headerForKey, headers, method, queryString, requestHandlerKey, requestHandlerPath, requestString, serverPort, uri
 

Field Detail

InitialRequestId

public static final String InitialRequestId
See Also:
Constant Field Values

AcceptLanguageKey

public static final String AcceptLanguageKey
See Also:
Constant Field Values

ContentLengthKey

public static final String ContentLengthKey
See Also:
Constant Field Values

ContentTypeKey

public static final String ContentTypeKey
See Also:
Constant Field Values

DefaultBrowserLanguage

public static final String DefaultBrowserLanguage
See Also:
Constant Field Values

IsSessionRendezvousFormKey

public static final String IsSessionRendezvousFormKey
See Also:
Constant Field Values

AllowFailedComponentRendezvousFormKey

public static final String AllowFailedComponentRendezvousFormKey
See Also:
Constant Field Values

CharacterEncodingKey

public static final String CharacterEncodingKey
See Also:
Constant Field Values

AWLogFilterListKey

public static final String AWLogFilterListKey
See Also:
Constant Field Values
Constructor Detail

AWBaseRequest

public AWBaseRequest()
Method Detail

inputStream

public abstract InputStream inputStream()
Specified by:
inputStream in interface AWRequest

init

public void init()
Specified by:
init in interface AWObject
Overrides:
init in class AWBaseObject

dispose

public void dispose()
Specified by:
dispose in interface AWDisposable

hasHandler

public boolean hasHandler()
Specified by:
hasHandler in interface AWRequest

isMultipartEncoded

public boolean isMultipartEncoded()

userAgent

public String userAgent()
Returns the HTTP User-Agent field or null if one does not exist. See also RFC2616, section 14.43.

Specified by:
userAgent in interface AWRequest
Returns:
Returns the User-Agent or null.

contentType

public String contentType()
Specified by:
contentType in interface AWRequest

contentLength

public int contentLength()
Specified by:
contentLength in interface AWRequest

remoteHost

public abstract String remoteHost()
Specified by:
remoteHost in interface AWRequest

remoteHostAddress

public abstract String remoteHostAddress()
Specified by:
remoteHostAddress in interface AWRequest

initIsBrowserFirefox

public boolean initIsBrowserFirefox()

initIsBrowserMicrosoft

public boolean initIsBrowserMicrosoft()

initIsBrowserSafari

public boolean initIsBrowserSafari()

initisMacintosh

public boolean initisMacintosh()

acceptLanguage

public String acceptLanguage()

requestLocales

public List requestLocales()
Specified by:
requestLocales in interface AWRequest

preferredLocale

public Locale preferredLocale()
Specified by:
preferredLocale in interface AWRequest

applicationNumber

public String applicationNumber()
Specified by:
applicationNumber in interface AWRequest

isBrowserFirefox

public boolean isBrowserFirefox()
Specified by:
isBrowserFirefox in interface AWRequest

isBrowserMicrosoft

public boolean isBrowserMicrosoft()
Specified by:
isBrowserMicrosoft in interface AWRequest

isBrowserIE55

public boolean isBrowserIE55()
Specified by:
isBrowserIE55 in interface AWRequest

isBrowserSafari

public boolean isBrowserSafari()
Specified by:
isBrowserSafari in interface AWRequest

isMacintosh

public boolean isMacintosh()
Specified by:
isMacintosh in interface AWRequest

isSecureScheme

public boolean isSecureScheme()
Specified by:
isSecureScheme in interface AWRequest

requestId

public String requestId()
Specified by:
requestId in interface AWRequest

responseId

public AWEncodedString responseId()
Specified by:
responseId in interface AWRequest

sessionId

public String sessionId()
Specified by:
sessionId in interface AWRequest

sessionSecureId

public String sessionSecureId()

frameName

public AWEncodedString frameName()
Specified by:
frameName in interface AWRequest

resetRequestId

public void resetRequestId()
Specified by:
resetRequestId in interface AWRequest

formValues

public Map formValues()
Specified by:
formValues in interface AWRequest

formValueForKey

public String formValueForKey(String formValueKey,
                              boolean ignoresCase)
Specified by:
formValueForKey in interface AWRequest

formValueForKey

public String formValueForKey(String formValueKey)
Specified by:
formValueForKey in interface AWRequest

formValueForKey

public String formValueForKey(AWEncodedString formValueKey)
Specified by:
formValueForKey in interface AWRequest

formValuesForKey

public String[] formValuesForKey(String formValueKey,
                                 boolean ignoresCase)
Specified by:
formValuesForKey in interface AWRequest

formValuesForKey

public String[] formValuesForKey(String formValueKey)
Specified by:
formValuesForKey in interface AWRequest

formValuesForKey

public String[] formValuesForKey(AWEncodedString formValueKey)
Specified by:
formValuesForKey in interface AWRequest

hasFormValueForKey

public boolean hasFormValueForKey(String formValueKey,
                                  boolean ignoresCase)
Specified by:
hasFormValueForKey in interface AWRequest

hasFormValueForKey

public boolean hasFormValueForKey(String formValueKey)
Specified by:
hasFormValueForKey in interface AWRequest

hasFormValueForKey

public boolean hasFormValueForKey(AWEncodedString formValueKey)
Specified by:
hasFormValueForKey in interface AWRequest

characterEncoding

public AWCharacterEncoding characterEncoding()
Specified by:
characterEncoding in interface AWRequest

setCharacterEncoding

public void setCharacterEncoding(AWCharacterEncoding characterEncoding)
Specified by:
setCharacterEncoding in interface AWRequest

decodeString

public static String decodeString(String string,
                                  FastStringBuffer buffer)
Parse a string that is URL encoded. NOTE: This code is based on ariba.util.net.CGI


parametersFromUrlEncodedString

public static Parameters parametersFromUrlEncodedString(String formValuesString)
Parse CGI form content. NOTE: This code is based on ariba.util.net.CGI


parseUrlEncodedFormValues

public static Map parseUrlEncodedFormValues(String formValuesString)

getSession

public javax.servlet.http.HttpSession getSession()
Specified by:
getSession in interface AWRequest

removeCookieValue

public void removeCookieValue(String cookieName)

cookieValuesForKey

public String[] cookieValuesForKey(String cookieName)
Specified by:
cookieValuesForKey in interface AWRequest

cookieValueForKey

public String cookieValueForKey(String cookieName)
Specified by:
cookieValueForKey in interface AWRequest

contentStream

public InputStream contentStream()

content

public byte[] content()
Specified by:
content in interface AWRequest

senderId

public AWEncodedString senderId()
Specified by:
senderId in interface AWRequest

senderIds

public String[] senderIds()

createInternalRequest

public static AWBaseRequest createInternalRequest(String url,
                                                  AWBaseRequest originalRequest)

createInternalRequest

public static AWBaseRequest createInternalRequest(String url,
                                                  String applicationNumber)

getBaseRequest

public AWBaseRequest getBaseRequest()


AribaWeb User Interface Development Framework
Copyright © 2000-2009 Ariba, Inc. All Rights Reserved.