public class AjaxRemoteLogging extends AjaxDynamicElement
window.console JS messages from the browser to
a logger on the server. Pretty helpful when trying to debug JS problems that
do not occur on your machine. As you will to a round trip to the server on
each message, it's pretty costly and should be used with care.| Name | Description |
|---|---|
logger | the log4j logger to append to (default: "AjaxRemoteLogging") |
level | the log4j logging level to use (default: "info") |
throttle | the number of milliseconds to collect statements before actually sending (default: 100) |
filter | a javascript function that returns true on a single argument msg when the logging should go to the server |
| Modifier and Type | Class and Description |
|---|---|
static class |
AjaxRemoteLogging.Log |
ERXDynamicElement.ContextData<T>log| Constructor and Description |
|---|
AjaxRemoteLogging(String arg0,
NSDictionary arg1,
com.webobjects.appserver.WOElement arg2) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRequiredWebResources(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
Override this method to append the needed scripts for this component.
|
void |
appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
Overridden to call
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext). |
com.webobjects.appserver.WOActionResults |
handleRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
Override this method to return the response for an Ajax request.
|
_containerID, addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, invokeAction, shouldHandleRequestafterProcessing, appendTagAttributeToResponse, arrayValueForBinding, arrayValueForBinding, associations, beforeProcessing, bindingIsSettable, bindingNamed, booleanValueForBinding, booleanValueForBinding, hasBinding, id, integerValueForBinding, nameInContext, secureInContext, setValueForBinding, stringValueForBinding, stringValueForBinding, valueForBinding, valueForBindingaddChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, takeValuesFromRequest, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitvalueForBinding, valueForBindingpublic AjaxRemoteLogging(String arg0, NSDictionary arg1, com.webobjects.appserver.WOElement arg2)
public void appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
AjaxDynamicElementAjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext).appendToResponse in class AjaxDynamicElementresponse - the current responsecontext - context of the transactionprotected void addRequiredWebResources(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
AjaxDynamicElementaddRequiredWebResources in class AjaxDynamicElementresponse - the current responsecontext - context of the transactionpublic com.webobjects.appserver.WOActionResults handleRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
AjaxDynamicElementhandleRequest in interface IAjaxElementhandleRequest in class AjaxDynamicElementrequest - the current requestcontext - context of the transactionCopyright © 2002 – 2020 Project Wonder.