Tynamo™-SNAP
v1.0.4

com.qindesign.servlet.example
Class ServerPushServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.qindesign.servlet.example.ServerPushServlet
All Implemented Interfaces:
Servlet, ServletConfig

public class ServerPushServlet
extends HttpServlet

Example servlet that shows how to perform "server push". It is known to work for the Netscape and Opera browsers, but not for Internet Explorer.

This counts up from 1 to the value specified in a request parameter named "count".

Version:
1.0.4
Author:
Shawn Silverman

Constructor Summary
ServerPushServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest req, HttpServletResponse resp)
          Processes a GET request.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerPushServlet

public ServerPushServlet()
Method Detail

doGet

protected void doGet(HttpServletRequest req,
                     HttpServletResponse resp)
              throws ServletException,
                     IOException
Processes a GET request.

Overrides:
doGet in class HttpServlet
Throws:
ServletException
IOException

Tynamo™-SNAP
v1.0.4

© 2001-2007 Shawn Silverman