public class ERXDirectAction
extends com.webobjects.appserver.WODirectAction
com.webobjects.foundation.NSKeyValueCodingAdditions.DefaultImplementation, com.webobjects.foundation.NSKeyValueCodingAdditions.Utility
com.webobjects.foundation.NSKeyValueCoding._BooleanFieldBinding, com.webobjects.foundation.NSKeyValueCoding._BooleanMethodBinding, com.webobjects.foundation.NSKeyValueCoding._FieldBinding, com.webobjects.foundation.NSKeyValueCoding._ForwardingBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBinding, com.webobjects.foundation.NSKeyValueCoding._KeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding._MethodBinding, com.webobjects.foundation.NSKeyValueCoding._NumberFieldBinding, com.webobjects.foundation.NSKeyValueCoding._NumberMethodBinding, com.webobjects.foundation.NSKeyValueCoding._ReflectionKeyBindingCreation, com.webobjects.foundation.NSKeyValueCoding.ErrorHandling, com.webobjects.foundation.NSKeyValueCoding.MapImplementation, com.webobjects.foundation.NSKeyValueCoding.Null<T>, com.webobjects.foundation.NSKeyValueCoding.UnknownKeyException, com.webobjects.foundation.NSKeyValueCoding.ValueAccessor
com.webobjects.foundation.NSValidation._MethodBinding, com.webobjects.foundation.NSValidation._ValidationBinding, com.webobjects.foundation.NSValidation.DefaultImplementation, com.webobjects.foundation.NSValidation.Utility, com.webobjects.foundation.NSValidation.ValidationException
Constructor and Description |
---|
ERXDirectAction(com.webobjects.appserver.WORequest r) |
Modifier and Type | Method and Description |
---|---|
ERXBrowser |
browser()
Returns the browser object representing the web
browser's "user-agent" string.
|
protected boolean |
canPerformActionWithPasswordKey(String passwordKey)
Checks if the action can be executed.
|
com.webobjects.appserver.WOActionResults |
closeHTTPSessionAction()
To use this, include this line in appendToResponse on any pages with uploads:
AjaxUtils.addScriptResourceInHead(context, response, "Ajax", "prototype.js");
AjaxUtils.addScriptResourceInHead(context, response, "Ajax", "SafariUploadHack.js");
|
com.webobjects.appserver.WOActionResults |
databaseConsoleAction()
Action used for accessing the database console
|
com.webobjects.appserver.WOActionResults |
dumpCreatedKeysAction()
Will dump all created keys of the current localizer via log4j and
returns an empty response.
|
com.webobjects.appserver.WOActionResults |
editLocalizedFilesAction()
Opens the localizer edit page if the app is in development mode.
|
com.webobjects.appserver.WOActionResults |
emptyAction()
Returns an empty response.
|
com.webobjects.appserver.WOActionResults |
eoAdaptorDebuggingAction()
Action used for turning EOAdaptorDebugging output on or off.
|
com.webobjects.appserver.WOActionResults |
eventsAction()
Direct access to WOEventDisplay by giving over the password in the "pw" parameter.
|
com.webobjects.appserver.WOActionResults |
eventsSetupAction()
Direct access to WOEventDisplay by giving over the password in the "pw"
parameter and turning on all events.
|
com.webobjects.appserver.WOActionResults |
flushComponentCacheAction()
Flushes the component cache to allow reloading components even when WOCachingEnabled=true.
|
protected com.webobjects.appserver.WOResponse |
forbiddenResponse()
Creates a response object with HTTP status code 403.
|
com.webobjects.appserver.WOActionResults |
forceGCAction()
Action used for forcing garbage collection.
|
com.webobjects.appserver.WOActionResults |
log4jAction()
Action used for changing logging settings at runtime.
|
com.webobjects.appserver.WOActionResults |
logoutAction()
Will terminate an existing session and redirect to the default action.
|
<T extends com.webobjects.appserver.WOComponent> |
pageWithName(Class<T> componentClass) |
com.webobjects.appserver.WOActionResults |
performActionNamed(String actionName) |
com.webobjects.appserver.WOActionResults |
remoteShellAction()
Action used for sending shell commands to the server and receive the result
|
com.webobjects.appserver.WOActionResults |
resetStatsAction()
Direct access to reset the stats by giving over the password in the "pw" parameter.
|
com.webobjects.appserver.WOActionResults |
showOpenEditingContextLockTracesAction()
Returns a list of the traces of open editing context locks.
|
com.webobjects.appserver.WOActionResults |
statsAction()
Direct access to WOStats by giving over the password in the "pw" parameter.
|
com.webobjects.appserver.WOActionResults |
stopAction()
Terminates the application when in development.
|
com.webobjects.appserver.WOActionResults |
systemPropertyAction()
Sets a System property.
|
com.webobjects.appserver.WOActionResults |
testAction()
Action used for junit tests.
|
_componentAction, defaultAction, getSessionIDForRequest, takeFormValueArraysForKeyArray, takeFormValuesForKeyArray
_isActionOnClass, _methodForAction, _preloadAllActionsOnClass, canAccessFieldsDirectly, context, debugString, existingSession, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, initializeRequestSessionIDInContext, languages, logString, pageWithName, request, session, setLanguages, takeValueForKey, takeValueForKeyPath, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForKey, valueForKeyPath
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
handleQueryWithUnboundKey, handleTakeValueForUnboundKey, unableToSetNullForKey
takeValueForKeyPath, valueForKeyPath
protected boolean canPerformActionWithPasswordKey(String passwordKey)
passwordKey
- the password to testtrue
if action is allowed to be invokedpublic com.webobjects.appserver.WOActionResults testAction()
er.extensions.ERXJUnitPassword
.
case class name for unit test to be performed.ERXWOTestInterface
with the results after performing the given test.public com.webobjects.appserver.WOActionResults flushComponentCacheAction()
public com.webobjects.appserver.WOActionResults statsAction()
public com.webobjects.appserver.WOActionResults resetStatsAction()
public com.webobjects.appserver.WOActionResults eventsAction()
public com.webobjects.appserver.WOActionResults eventsSetupAction()
public com.webobjects.appserver.WOActionResults eoAdaptorDebuggingAction()
er.extensions.ERXEOAdaptorDebuggingPassword
.Note: this action must be invoked against a specific instance (the instance number must be in the request URL).
public com.webobjects.appserver.WOActionResults log4jAction()
er.extensions.ERXLog4JPassword
.ERXLog4JConfiguration
for modifying current logging settings.public com.webobjects.appserver.WOActionResults remoteShellAction()
er.extensions.ERXRemoteShellPassword
.ERXLog4JConfiguration
for modifying current logging settings.public com.webobjects.appserver.WOActionResults databaseConsoleAction()
er.extensions.ERXRemoteShellPassword
.ERXLog4JConfiguration
for modifying current logging settings.public com.webobjects.appserver.WOActionResults forceGCAction()
er.extensions.ERXGCPassword
.public com.webobjects.appserver.WOActionResults showOpenEditingContextLockTracesAction()
public com.webobjects.appserver.WOActionResults logoutAction()
public ERXBrowser browser()
public com.webobjects.appserver.WOActionResults performActionNamed(String actionName)
performActionNamed
in class com.webobjects.appserver.WODirectAction
public com.webobjects.appserver.WOActionResults systemPropertyAction()
public com.webobjects.appserver.WOActionResults editLocalizedFilesAction()
public com.webobjects.appserver.WOActionResults dumpCreatedKeysAction()
public com.webobjects.appserver.WOActionResults emptyAction()
public com.webobjects.appserver.WOActionResults closeHTTPSessionAction()
AjaxUtils.addScriptResourceInHead(context, response, "Ajax", "prototype.js");
AjaxUtils.addScriptResourceInHead(context, response, "Ajax", "SafariUploadHack.js");
To be called before multi-form submits to get past Safari 3.2.1 and 4.x intermittent hang-ups when posting binary data. A nice succinct description and solution is posted here: http://blog.airbladesoftware.com/2007/8/17/note-to-self-prevent-uploads-hanging-in-safari The radar ticket is here: https://bugs.webkit.org/show_bug.cgi?id=5760
public <T extends com.webobjects.appserver.WOComponent> T pageWithName(Class<T> componentClass)
public com.webobjects.appserver.WOActionResults stopAction()
protected com.webobjects.appserver.WOResponse forbiddenResponse()
Copyright © 2002 – 2020 Project Wonder.