Project Wonder 2.0

er.extensions
Class ERXRequest

java.lang.Object
  extended bycom.webobjects.appserver.WOMessage
      extended bycom.webobjects.appserver.WORequest
          extended byer.extensions.ERXRequest
All Implemented Interfaces:
Cloneable, NSKeyValueCoding, NSKeyValueCoding.ErrorHandling, NSKeyValueCodingAdditions

public class ERXRequest
extends WORequest

Subclass of WORequest that fixes several Bugs. The ID's are #2924761 and #2961017. It can also be extended to handle #2957558 ("de-at" is converted to "German" instead of "German_Austria"). The request is created via ERXApplication.createRequest(String,String,String, NSDictionary,NSData,NSDictionary).


Nested Class Summary
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCoding
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.DefaultImplementation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.Null, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.Utility, NSKeyValueCoding.ValueAccessor
 
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
 
Field Summary
protected  ERXBrowser _browser
          holds a reference to the browser object
protected  NSArray _browserLanguages
          NSArray to keep browserLanguages in.
protected static Boolean isBrowserFormValueEncodingOverrideEnabled
           
static ERXLogger log
          logging support
 
Fields inherited from class com.webobjects.appserver.WORequest
_IsmapCoords, ContextIDKey, DataKey, InstanceKey, PageNameKey, SenderIDKey, SessionIDKey, SingleInstanceID, SingleInstanceIDString
 
Fields inherited from class com.webobjects.appserver.WOMessage
_content, _contentData, _contentEncoding, _cookies, _headers, _httpVersion, _TheCookieKey, _TheSetCookieKey, _userInfo, HTTP_STATUS_FORBIDDEN, HTTP_STATUS_FOUND, HTTP_STATUS_INTERNAL_ERROR, HTTP_STATUS_MOVED_PERMANENTLY, HTTP_STATUS_NO_CONTENT, HTTP_STATUS_NOT_FOUND, HTTP_STATUS_OK, TheDefaultResponseEncoding
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding
_CLASS, NullValue
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling
_CLASS
 
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
 
Constructor Summary
ERXRequest(String string, String string0, String string1, NSDictionary nsdictionary, NSData nsdata, NSDictionary nsdictionary2)
          Simply call superclass constructor
 
Method Summary
protected  String _getSessionIDFromValuesOrCookie(boolean inCookiesFirst)
           
 ERXBrowser browser()
          Gets the ERXBrowser associated with the user-agent of the request.
 NSArray browserLanguages()
          Returns a cooked version of the languages the user has set in his Browser.
 NSDictionary cookieValues()
           
 void finalize()
          Cleaning up retian count on the browser.
protected  NSArray fixAbbreviationArray(NSArray languages)
           
 boolean isBrowserFormValueEncodingOverrideEnabled()
           
 boolean isSessionIDInRequest()
           
 String remoteHost()
           
 
Methods inherited from class com.webobjects.appserver.WORequest
_completeURLPrefix, _contentLengthHeader, _context, _formValueKeyEnumerator, _formValues, _hasFormValues, _lookForIDsInCookiesFirst, _multipartIterator, _originatingAddress, _originatingPort, _remoteAddress, _serverName, _serverPort, _setApplicationNumber, _setContext, _setIsUsingWebServer, _setOriginatingAddress, _setOriginatingPort, _uriDecomposed, adaptorPrefix, applicationName, applicationNumber, applicationURLPrefix, clone, contentInputStream, cookies, cookieValueForKey, cookieValuesForKey, dateFormValueForKey, defaultFormValueEncoding, formValueEncoding, formValueForKey, formValueKeys, formValues, formValuesForKey, isFormValueEncodingDetectionEnabled, isFromClientComponent, isMultipartFormData, isUsingWebServer, method, multipartIterator, numericFormValueForKey, queryString, requestHandlerKey, requestHandlerPath, requestHandlerPathArray, sessionID, setDefaultFormValueEncoding, setFormValueEncodingDetectionEnabled, stringFormValueForKey, toString, uri
 
Methods inherited from class com.webobjects.appserver.WOMessage
_appendContentAsciiString, _contentLength, _finalizeCookies, _initCookies, _setHeader, _setHeaders, _stringByEscapingString, addCookie, appendContentCharacter, appendContentData, appendContentDOMDocumentFragment, appendContentHTMLAttributeValue, appendContentHTMLString, appendContentString, appendHeader, appendHeaders, canAccessFieldsDirectly, content, contentAsDOMDocument, contentEncoding, contentString, defaultEncoding, defaultURLEncoding, equals, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, headerForKey, headerKeys, headers, headersForKey, httpVersion, removeCookie, removeHeadersForKey, requiresHTMLEscaping, setContent, setContent, setContent, setContentDOMDocument, setContentEncoding, setDefaultEncoding, setDefaultURLEncoding, setHeader, setHeaders, setHeaders, setHTTPVersion, setUserInfo, stringByEscapingHTMLAttributeValue, stringByEscapingHTMLString, takeValueForKey, takeValueForKeyPath, unableToSetNullForKey, userInfo, valueForKey, valueForKeyPath
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

public static final ERXLogger log
logging support


isBrowserFormValueEncodingOverrideEnabled

protected static Boolean isBrowserFormValueEncodingOverrideEnabled

_browserLanguages

protected NSArray _browserLanguages
NSArray to keep browserLanguages in.


_browser

protected ERXBrowser _browser
holds a reference to the browser object

Constructor Detail

ERXRequest

public ERXRequest(String string,
                  String string0,
                  String string1,
                  NSDictionary nsdictionary,
                  NSData nsdata,
                  NSDictionary nsdictionary2)
Simply call superclass constructor

Method Detail

isBrowserFormValueEncodingOverrideEnabled

public boolean isBrowserFormValueEncodingOverrideEnabled()

browserLanguages

public NSArray browserLanguages()
Returns a cooked version of the languages the user has set in his Browser. Adds "Nonlocalized" and ERXLocalizer.defaultLanguage() if not already present.

Returns:
cooked version of user's languages

browser

public ERXBrowser browser()
Gets the ERXBrowser associated with the user-agent of the request.

Returns:
browser object for the request

finalize

public void finalize()
              throws Throwable
Cleaning up retian count on the browser.

Throws:
Throwable

fixAbbreviationArray

protected NSArray fixAbbreviationArray(NSArray languages)

cookieValues

public NSDictionary cookieValues()

isSessionIDInRequest

public boolean isSessionIDInRequest()

_getSessionIDFromValuesOrCookie

protected String _getSessionIDFromValuesOrCookie(boolean inCookiesFirst)

remoteHost

public String remoteHost()

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.