|
Project Wonder 5.0.0.8654 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webobjects.appserver.WOMessage
com.webobjects.appserver.WORequest
er.extensions.appserver.ERXRequest
public class ERXRequest
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/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
| Field Summary | |
|---|---|
protected ERXBrowser |
_browser
holds a reference to the browser object |
protected NSArray<String> |
_browserLanguages
NSArray to keep browserLanguages in. |
protected boolean |
_secureDisabled
Specifies whether https should be overridden to be enabled or disabled app-wide. |
protected static NSArray<String> |
HOST_ADDRESS_KEYS
|
protected static NSArray<String> |
HOST_NAME_KEYS
|
protected static Boolean |
isBrowserFormValueEncodingOverrideEnabled
|
static Logger |
log
logging support |
static String |
UNKNOWN_HOST
|
| Fields inherited from class com.webobjects.appserver.WORequest |
|---|
_finishedParsingMultipartFormData, _firstFormValueInvocation, _formValues, _IsmapCoords, _legacyMultipart, _method, _multipartIterator, _uri, ApplicationInstanceKey, ContextIDKey, DataKey, InstanceKey, PageNameKey, SenderIDKey, ServerPortHeader, ServerPortHeaderX, ServerPortSecureValue, SessionIDKey, SingleInstanceID, SingleInstanceIDString |
| Fields inherited from class com.webobjects.appserver.WOMessage |
|---|
_content, _contentData, _contentEncoding, _cookies, _headerEncoding, _httpHeaders, _httpVersion, _storePageInBacktrackCache, _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, map, TheDefaultResponseEncoding |
| 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 | |
|---|---|
void |
_completeURLPrefix(StringBuffer stringbuffer,
boolean secure,
int port)
|
protected String |
_getSessionIDFromValuesOrCookie(boolean inCookiesFirst)
Overridden because the super implementation would pull in all content even if the request is supposed to be streaming and thus very large. |
static boolean |
_isSecureDisabled()
Returns true if er.extensions.ERXRequest.secureDisabled is true. |
ERXBrowser |
browser()
Gets the ERXBrowser associated with the user-agent of the request. |
NSArray<String> |
browserLanguages()
Returns a cooked version of the languages the user has set in his Browser. |
WOContext |
context()
|
NSDictionary |
cookieValues()
Overridden because malformed cookie to return an empty dictionary if the super implementation throws an exception. |
void |
finalize()
Cleaning up retian count on the browser. |
protected NSArray<String> |
fixAbbreviationArray(NSArray<String> languages)
|
boolean |
isBrowserFormValueEncodingOverrideEnabled()
|
static boolean |
isRequestSecure(WORequest request)
Returns whether or not the given request is secure. |
boolean |
isSecure()
Returns whether or not this request is secure. |
boolean |
isSecureDisabled()
Returns true if er.extensions.ERXRequest.secureDisabled is true. |
boolean |
isSessionIDInRequest()
Overridden because the super implementation would pull in all content even if the request is supposed to be streaming and thus very large. |
NSMutableDictionary |
mutableUserInfo()
|
String |
remoteHost()
Deprecated. Use remoteHostAddress() instead |
String |
remoteHostAddress()
Returns the remote client host address. |
String |
remoteHostName()
Returns the remote client host name. |
void |
setCredentials(String userName,
String password)
Utility method to set credentials for basic authorization. |
String |
stringFormValueForKey(String key)
|
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Logger log
public static final String UNKNOWN_HOST
protected static Boolean isBrowserFormValueEncodingOverrideEnabled
protected static final NSArray<String> HOST_ADDRESS_KEYS
protected static final NSArray<String> HOST_NAME_KEYS
protected NSArray<String> _browserLanguages
protected ERXBrowser _browser
protected boolean _secureDisabled
| Constructor Detail |
|---|
public ERXRequest(String string,
String string0,
String string1,
NSDictionary nsdictionary,
NSData nsdata,
NSDictionary nsdictionary2)
| Method Detail |
|---|
public static boolean _isSecureDisabled()
public boolean isSecureDisabled()
public boolean isBrowserFormValueEncodingOverrideEnabled()
public WOContext context()
context in class WORequestpublic NSArray<String> browserLanguages()
ERXLocalizer#defaultLanguage() if not
already present. Transforms regionalized en_us to English_US as a key.
browserLanguages in class WORequestpublic String stringFormValueForKey(String key)
stringFormValueForKey in class WORequestpublic ERXBrowser browser()
public void finalize()
throws Throwable
finalize in class ObjectThrowablepublic boolean isSecure()
isSecure in class WORequest
public void _completeURLPrefix(StringBuffer stringbuffer,
boolean secure,
int port)
_completeURLPrefix in class WORequestpublic static boolean isRequestSecure(WORequest request)
request - the request to check
protected NSArray<String> fixAbbreviationArray(NSArray<String> languages)
public NSDictionary cookieValues()
cookieValues in class WORequestpublic boolean isSessionIDInRequest()
false if the request
handler is streaming.
isSessionIDInRequest in class WORequestprotected String _getSessionIDFromValuesOrCookie(boolean inCookiesFirst)
_getSessionIDFromValuesOrCookie in class WORequest
public void setCredentials(String userName,
String password)
@Deprecated public String remoteHost()
public String remoteHostAddress()
public String remoteHostName()
public NSMutableDictionary mutableUserInfo()
|
Last updated: Thu, Nov 20, 2008 04:36 AM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||