er.ajax
Class AjaxRemoteLogging
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WODynamicElement
com.webobjects.appserver._private.WODynamicGroup
er.ajax.AjaxDynamicElement
er.ajax.AjaxRemoteLogging
- All Implemented Interfaces:
- IAjaxElement
public class AjaxRemoteLogging
- extends AjaxDynamicElement
Allows you to log 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.
- Author:
- ak
| Bindings |
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 |
| Fields inherited from class com.webobjects.appserver._private.WODynamicGroup |
_children |
| Methods inherited from class er.ajax.AjaxDynamicElement |
_containerID, addScriptResourceInHead, addScriptResourceInHead, addStylesheetResourceInHead, addStylesheetResourceInHead, appendTagAttributeToResponse, associations, bindingNamed, booleanValueForBinding, hasBinding, invokeAction, setValueForBinding, shouldHandleRequest, stringValueForBinding, stringValueForBinding, takeValuesFromRequest, valueForBinding, valueForBinding |
| Methods inherited from class com.webobjects.appserver._private.WODynamicGroup |
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, toString |
AjaxRemoteLogging
public AjaxRemoteLogging(String arg0,
NSDictionary arg1,
WOElement arg2)
appendToResponse
public void appendToResponse(WOResponse response,
WOContext context)
- Description copied from class:
AjaxDynamicElement
- Overridden to call
AjaxDynamicElement.addRequiredWebResources(WOResponse, WOContext).
- Overrides:
appendToResponse in class AjaxDynamicElement
- Parameters:
response - the current responsecontext - the current context
addRequiredWebResources
protected void addRequiredWebResources(WOResponse response,
WOContext context)
- Description copied from class:
AjaxDynamicElement
- Override this method to append the needed scripts for this component.
- Specified by:
addRequiredWebResources in class AjaxDynamicElement
context - the current context
handleRequest
public WOActionResults handleRequest(WORequest request,
WOContext context)
- Description copied from class:
AjaxDynamicElement
- Override this method to return the response for an Ajax request.
- Specified by:
handleRequest in interface IAjaxElement- Specified by:
handleRequest in class AjaxDynamicElement
- Parameters:
request - the current requestcontext - the current context
Copyright © 2002 – 2011 Project Wonder.