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| Constructor and Description |
|---|
AjaxSessionPing(String name,
NSDictionary<String,com.webobjects.appserver.WOAssociation> associations,
com.webobjects.appserver.WOElement children) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRequiredWebResources(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
Uses Prototype and Wonder
|
void |
appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
Appends script to start Ajax.ActivePeriodicalUpdater to the response.
|
NSDictionary |
createAjaxOptions(com.webobjects.appserver.WOComponent component)
Gathers the bindings into an AjaxOptions dictionary.
|
com.webobjects.appserver.WOActionResults |
handleRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.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,com.webobjects.appserver.WOAssociation> associations, com.webobjects.appserver.WOElement children)
public void appendToResponse(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
appendToResponse in class AjaxDynamicElementresponse - the current responsecontext - context of the transactionpublic NSDictionary createAjaxOptions(com.webobjects.appserver.WOComponent component)
component - the component to evaluate the bindings inpublic com.webobjects.appserver.WOActionResults handleRequest(com.webobjects.appserver.WORequest request,
com.webobjects.appserver.WOContext context)
handleRequest in interface IAjaxElementhandleRequest in class AjaxDynamicElementrequest - the current requestcontext - context of the transactionprotected void addRequiredWebResources(com.webobjects.appserver.WOResponse response,
com.webobjects.appserver.WOContext context)
addRequiredWebResources in class AjaxDynamicElementresponse - the current responsecontext - context of the transactionCopyright © 2002 – 2020 Project Wonder.