Package com.helger.photon.ajax.executor
Class AjaxExecutorKeepAlive
- java.lang.Object
-
- com.helger.photon.ajax.executor.AjaxExecutorKeepAlive
-
- All Implemented Interfaces:
IAjaxExecutor,Serializable
public final class AjaxExecutorKeepAlive extends Object implements IAjaxExecutor
A dummy AJAX handler that can be invoked to keep the session alive.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AjaxExecutorKeepAlive()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, com.helger.photon.app.PhotonUnifiedResponse aAjaxResponse)Called to handle a specific request.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.helger.photon.ajax.executor.IAjaxExecutor
initExecution, registerExternalResources
-
-
-
-
Method Detail
-
handleRequest
public void handleRequest(@Nonnull com.helger.web.scope.IRequestWebScopeWithoutResponse aRequestScope, @Nonnull com.helger.photon.app.PhotonUnifiedResponse aAjaxResponse) throws Exception
Description copied from interface:IAjaxExecutorCalled to handle a specific request. The implementation of this method usually performs a server side task and fills the provided response object with e.g. binary data to download or HTML content to be evaluated by the calling HTML page. If this Ajax executor only executes something but delivers no result, at least the HTTP status 204 (No content) should be returned.- Specified by:
handleRequestin interfaceIAjaxExecutor- Parameters:
aRequestScope- the request scope values to be used. Nevernull.aAjaxResponse- The response object to be filled. Nevernull.- Throws:
Exception- Any exception if an error occurs.
-
-