The AjaxRequestHandler extends the HtmlRequestHandler, and it defines how AJAX request logic is handled. The AjaxRequestHandler has the following functions:
▪ AJAX request validation: when an HTTP request is made, the AjaxRequestHandler handler determines whether the request is an HTML channel request or an AJAX channel request.
▪ Initializes channel parameters and generates data that is required by the AJAX channel to process an AJAX request.
▪ Concurrent request support: enables two or more requests to be executed at the same time in a session.
▪ AJAX time out value: specifies how long an AJAX request will be timeout.
▪ Context handling: when a request is made, the AjaxRequestHandler methodrebuilds the current context. If a request is raised in a processor, the AjaxRequestHandler method rebuilds the processor context and chains the request operation context to the processor context so that the operation can access the processor context. If a request is not raised in a processor, the AjaxRequestHandler method chains the AJAX operation context under the current session context. When a request has been processed, the AjaxRequestHandler method unchains the operation context from the parent context. If the request is the last active request and the parent is a process, it will save the processor context in the cache as html processor done.