com.raritantechnologies.quickstart.taglibrary.ajax
Class AjaxServlet

java.lang.Object
  extended byHttpServlet
      extended bycom.raritantechnologies.quickstart.taglibrary.ajax.AjaxServlet

public class AjaxServlet
extends HttpServlet

Handles state updates and monitoring of AJAX pages. Servlet is called by refresh code in pages with AJAX custom tags, for example as generated by the AjaxDisplayForm.

Depending on the current status of the background process, the AjaxServlet will either send a page with new data or a page that will call the AjaxServlet back after some delay time. For intermediate states, data will be sent back and requests will continue until some final state is reached. When the final page is sent, no further requests will be made to the AjaxServlet.

See Also:
Serialized Form

Constructor Summary
AjaxServlet()
           
 
Method Summary
static java.lang.String getCurrentPage(RaritanPageContext pContext)
           
 void service(HttpServletRequest pReq, HttpServletResponse pRes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AjaxServlet

public AjaxServlet()
Method Detail

service

public void service(HttpServletRequest pReq,
                    HttpServletResponse pRes)
             throws ServletException,
                    java.io.IOException
Throws:
ServletException
java.io.IOException

getCurrentPage

public static java.lang.String getCurrentPage(RaritanPageContext pContext)