public class AjaxSessionPing extends AjaxDynamicElement
| Name | Description |
|---|---|
frequency | the period between pings of the application (optional, default 60 seconds) |
keepSessionAlive | true if session should be checked out to reset timeout when the application is pinged (optional, default false) |
parameters | optional URL parameter string appended when application is pinged (optional, no default) |
onFailure | function to execute if the session has expired or other HTTP error code returned from ping (optional, default "function(response) { window.close();}") |
asynchronous | true if the ping should be made asynchronously (optional, default true) |
evalScripts | true if the ping results may contain JavaScript that should be evaluated (optional, default false) |
method | the HTTP request method to use for the ping (optional, default "get") |
| Modifier and Type | Class and Description |
|---|---|
static class |
AjaxSessionPing.Action
Internal WODirectAction subclass to handle the request from AjaxSessionPing.
|
ERXDynamicElement.ContextData<T>log_children_ConstructorParameters| Constructor and Description |
|---|
AjaxSessionPing(String name,
NSDictionary<String,WOAssociation> associations,
WOElement children) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRequiredWebResources(WOResponse response,
WOContext context)
Uses Prototype and Wonder
|
void |
appendToResponse(WOResponse response,
WOContext context)
Appends script to start Ajax.ActivePeriodicalUpdater to the response.
|
NSDictionary |
createAjaxOptions(WOComponent component)
Gathers the bindings into an AjaxOptions dictionary.
|
WOActionResults |
handleRequest(WORequest request,
WOContext context)
Unused.
|
_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 AjaxSessionPing(String name, NSDictionary<String,WOAssociation> associations, WOElement children)
public void appendToResponse(WOResponse response, WOContext context)
appendToResponse in class AjaxDynamicElementresponse - the current responsecontext - context of the transactionpublic NSDictionary createAjaxOptions(WOComponent component)
component - the component to evaluate the bindings inpublic WOActionResults handleRequest(WORequest request, WOContext context)
handleRequest in interface IAjaxElementhandleRequest in class AjaxDynamicElementrequest - the current requestcontext - context of the transactionprotected void addRequiredWebResources(WOResponse response, WOContext context)
addRequiredWebResources in class AjaxDynamicElementresponse - the current responsecontext - context of the transactionCopyright © 2002 – 2025 Project Wonder.