er.extensions
Class ERXRequest
java.lang.Object
com.webobjects.appserver.WOMessage
com.webobjects.appserver.WORequest
er.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 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 |
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 |
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 |
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
ERXRequest
public ERXRequest(String string,
String string0,
String string1,
NSDictionary nsdictionary,
NSData nsdata,
NSDictionary nsdictionary2)
- Simply call superclass constructor
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()
Copyright © 2002 – 2004 Project Wonder.