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, shouldHandleRequest
afterProcessing, appendTagAttributeToResponse, arrayValueForBinding, arrayValueForBinding, associations, beforeProcessing, bindingIsSettable, bindingNamed, booleanValueForBinding, booleanValueForBinding, hasBinding, id, integerValueForBinding, nameInContext, secureInContext, setValueForBinding, stringValueForBinding, stringValueForBinding, valueForBinding, valueForBinding
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest, takeValuesFromRequest, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
valueForBinding, valueForBinding
public 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 AjaxDynamicElement
response
- 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 IAjaxElement
handleRequest
in class AjaxDynamicElement
request
- the current requestcontext
- context of the transactionprotected void addRequiredWebResources(com.webobjects.appserver.WOResponse response, com.webobjects.appserver.WOContext context)
addRequiredWebResources
in class AjaxDynamicElement
response
- the current responsecontext
- context of the transactionCopyright © 2002 – 2020 Project Wonder.