|
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.WOContext
er.extensions.appserver.ajax.ERXAjaxContext
er.extensions.appserver.ERXWOContext
public class ERXWOContext
Replacement of WOContext. This subclass is installed when the frameworks loads.
| Nested Class Summary | |
|---|---|
static class |
ERXWOContext.Observer
|
| Nested classes/interfaces inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
| Field Summary | |
|---|---|
static String |
CONTEXT_KEY
|
| Fields inherited from class com.webobjects.appserver.WOContext |
|---|
_pageFragementID, _session, _userInfo, EscapeQueryDictionary, SessionIDBindingKey, WOURLEncoding |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
|---|
_CLASS |
| Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
|---|
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator |
| Constructor Summary | |
|---|---|
ERXWOContext(WORequest worequest)
|
|
| Method Summary | |
|---|---|
protected static NSMutableDictionary |
_contextDictionary()
|
static String |
_directActionURL(WOContext context,
String actionName,
NSDictionary queryParams,
boolean secure)
Call this anywhere you would have called _directActionURL in 5.3 if you want to be 5.4 compatible. |
void |
_generateCompleteURLs()
|
void |
_generateRelativeURLs()
|
boolean |
_generatingCompleteURLs()
|
static String |
_htmlCloseHeadTag()
Deprecated. replaced by ERXResponseRewriter |
void |
_setCurrentComponent(WOComponent wocomponent)
Implemented so the the thread checks if it should get interrupted. |
String |
_urlWithRequestHandlerKey(String requestHandlerKey,
String requestHandlerPath,
String queryString,
boolean secure)
|
static void |
addResourceInHead(WOContext context,
WOResponse response,
String framework,
String fileName,
String startTag,
String endTag)
Deprecated. replaced by ERXResponseRewriter |
static void |
addResourceInHead(WOContext context,
WOResponse response,
String framework,
String fileName,
String startTag,
String endTag,
ERXResponseRewriter.TagMissingBehavior tagMissingBehavior)
Deprecated. replaced by ERXResponseRewriter |
static void |
addScriptCodeInHead(WOContext context,
WOResponse response,
String script)
Deprecated. replaced by ERXResponseRewriter |
static void |
addScriptCodeInHead(WOContext context,
WOResponse response,
String script,
String scriptName)
Deprecated. replaced by ERXResponseRewriter |
static void |
addScriptResourceInHead(WOContext context,
WOResponse response,
String framework,
String fileName)
Deprecated. replaced by ERXResponseRewriter |
static void |
addStylesheetResourceInHead(WOContext context,
WOResponse response,
String framework,
String fileName)
Deprecated. replaced by ERXResponseRewriter |
static NSArray<String> |
componentPath(WOContext context)
Debugging help, returns the path to current component. |
static NSMutableDictionary |
contextDictionary()
Public constructor |
static WOContext |
currentContext()
|
static String |
directActionUrl(WOContext context,
String directActionName,
Boolean secure,
boolean includeSessionID)
Generates direct action URLs with support for various overrides. |
static String |
directActionUrl(WOContext context,
String host,
Integer port,
String path,
String directActionName,
NSDictionary<String,? extends Object> queryParameters,
Boolean secure,
boolean includeSessionID)
Generates direct action URLs with support for various overrides. |
static String |
directActionUrl(WOContext context,
String host,
Integer port,
String path,
String directActionName,
String key,
Object value,
Boolean secure,
boolean includeSessionID)
Generates direct action URLs with support for various overrides. |
static String |
directActionUrl(WOContext context,
String directActionName,
NSDictionary<String,? extends Object> queryParameters,
Boolean secure,
boolean includeSessionID)
Generates direct action URLs with support for various overrides. |
static String |
directActionUrl(WOContext context,
String directActionName,
String key,
String value,
Boolean secure,
boolean includeSessionID)
Generates direct action URLs with support for various overrides. |
String |
directActionURLForActionNamed(String actionName,
NSDictionary queryDict,
boolean includeSessionID)
Returns a complete URL for the specified action. |
WOSession |
existingSession()
Returns the existing session if any is given in the form values or url. |
boolean |
hasSession()
Returns true if there is an existing session. |
static void |
insertInResponseBeforeTag(WOContext context,
WOResponse response,
String content,
String tag,
ERXResponseRewriter.TagMissingBehavior tagMissingBehavior)
Deprecated. replaced by ERXResponseRewriter |
NSMutableDictionary |
mutableUserInfo()
Returns the mutableUserInfo. |
static WOContext |
newContext()
Creates a WOContext using a dummy WORequest. |
String |
safeElementID()
|
static String |
safeIdentifierName(WOContext context,
boolean willCache)
Returns a safe identifier for the current component. |
static void |
setCurrentContext(Object object)
|
void |
setMutableUserInfo(NSMutableDictionary userInfo)
Set the mutableUserInfo |
static String |
stripSessionIDFromURL(String url)
Removes Session ID (wosid) query key/value pair from the given URL string. |
static String |
toSafeElementID(String elementID)
Deprecated. for ERXStringUtilities.safeIdentifierName(String) |
NSDictionary |
userInfo()
|
| Methods inherited from class er.extensions.appserver.ajax.ERXAjaxContext |
|---|
_wasFormSubmitted |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String CONTEXT_KEY
| Constructor Detail |
|---|
public ERXWOContext(WORequest worequest)
| Method Detail |
|---|
public WOSession existingSession()
public boolean hasSession()
hasSession in class WOContextpublic static NSMutableDictionary contextDictionary()
public static WOContext currentContext()
public static void setCurrentContext(Object object)
protected static NSMutableDictionary _contextDictionary()
public void _setCurrentComponent(WOComponent wocomponent)
_setCurrentComponent in class WOContexteoadaptorchannel - nsmutabledictionary - public void _generateCompleteURLs()
_generateCompleteURLs in class WOContextpublic void _generateRelativeURLs()
_generateRelativeURLs in class WOContextpublic boolean _generatingCompleteURLs()
public static WOContext newContext()
public NSMutableDictionary mutableUserInfo()
ERXMutableUserInfoHolderInterface
mutableUserInfo in interface ERXMutableUserInfoHolderInterfacepublic void setMutableUserInfo(NSMutableDictionary userInfo)
ERXMutableUserInfoHolderInterface
setMutableUserInfo in interface ERXMutableUserInfoHolderInterfacepublic NSDictionary userInfo()
userInfo in class WOContext
public String _urlWithRequestHandlerKey(String requestHandlerKey,
String requestHandlerPath,
String queryString,
boolean secure)
_urlWithRequestHandlerKey in class WOContext
public String directActionURLForActionNamed(String actionName,
NSDictionary queryDict,
boolean includeSessionID)
WOContext.directActionURLForActionNamed(java.lang.String, com.webobjects.foundation.NSDictionary) but has one extra
parameter to specify whether or not to include the current Session ID
(wosid) in the URL. Convenient if you embed the link for the direct
action into an email message and don't want to keep the Session ID in it.
actionName can be either an action -- "ActionName" -- or
an action on a class -- "ActionClass/ActionName". You can also specify
queryDict to be an NSDictionary which contains form values
as key/value pairs. includeSessionID indicates if you want
to include the Session ID (wosid) in the URL.
actionName - String action namequeryDict - NSDictionary containing query key/value pairsincludeSessionID - true: to include the Session ID (if has one), WODirectActionpublic static String stripSessionIDFromURL(String url)
url - String URL
public static NSArray<String> componentPath(WOContext context)
context - public static String _htmlCloseHeadTag()
public static void insertInResponseBeforeTag(WOContext context,
WOResponse response,
String content,
String tag,
ERXResponseRewriter.TagMissingBehavior tagMissingBehavior)
public static void addScriptResourceInHead(WOContext context,
WOResponse response,
String framework,
String fileName)
public static void addStylesheetResourceInHead(WOContext context,
WOResponse response,
String framework,
String fileName)
public static void addScriptCodeInHead(WOContext context,
WOResponse response,
String script)
public static void addScriptCodeInHead(WOContext context,
WOResponse response,
String script,
String scriptName)
public static void addResourceInHead(WOContext context,
WOResponse response,
String framework,
String fileName,
String startTag,
String endTag)
public static void addResourceInHead(WOContext context,
WOResponse response,
String framework,
String fileName,
String startTag,
String endTag,
ERXResponseRewriter.TagMissingBehavior tagMissingBehavior)
public static String safeIdentifierName(WOContext context,
boolean willCache)
context - the WOContextwillCache - if true, you should cache the resulting value in your component
public static String toSafeElementID(String elementID)
elementID - the element ID
ERXStringUtilities#safeIdentifierName(String, String, char)
public static String _directActionURL(WOContext context,
String actionName,
NSDictionary queryParams,
boolean secure)
context - the WOContext to operate onactionName - the name of the direct action to lookupqueryParams - the query parameters to usesecure - whether or not the URL should be HTTPS
public static String directActionUrl(WOContext context,
String directActionName,
Boolean secure,
boolean includeSessionID)
context - the context to generate the URL withindirectActionName - the direct action namesecure - true = https, false = http, null = same as requestincludeSessionID - if false, removes wosid from query parameters
public static String directActionUrl(WOContext context,
String directActionName,
String key,
String value,
Boolean secure,
boolean includeSessionID)
context - the context to generate the URL withindirectActionName - the direct action namekey - the query parameter key to add (or null to skip)value - the query parameter value to add (or null to skip)secure - true = https, false = http, null = same as requestincludeSessionID - if false, removes wosid from query parameters
public static String directActionUrl(WOContext context,
String directActionName,
NSDictionary<String,? extends Object> queryParameters,
Boolean secure,
boolean includeSessionID)
context - the context to generate the URL withindirectActionName - the direct action namequeryParameters - the query parameters to append (or null)secure - true = https, false = http, null = same as requestincludeSessionID - if false, removes wosid from query parameters
public static String directActionUrl(WOContext context,
String host,
Integer port,
String path,
String directActionName,
String key,
Object value,
Boolean secure,
boolean includeSessionID)
context - the context to generate the URL withinhost - the host name for the URL (or null for default)port - the port number of the URL (or null for default)path - the custom path prefix (or null for none)directActionName - the direct action namekey - the query parameter key to add (or null to skip)value - the query parameter value to add (or null to skip)secure - true = https, false = http, null = same as requestincludeSessionID - if false, removes wosid from query parameters
public static String directActionUrl(WOContext context,
String host,
Integer port,
String path,
String directActionName,
NSDictionary<String,? extends Object> queryParameters,
Boolean secure,
boolean includeSessionID)
context - the context to generate the URL withinhost - the host name for the URL (or null for default)port - the port number of the URL (or null for default)path - the custom path prefix (or null for none)directActionName - the direct action namequeryParameters - the query parameters to append (or null)secure - true = https, false = http, null = same as requestincludeSessionID - if false, removes wosid from query parameters
public String safeElementID()
|
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 | |||||||||