com.qindesign.servlet.example
Class ServerPushServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
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
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
ServerPushServlet
public ServerPushServlet()
doGet
protected void doGet(HttpServletRequest req,
HttpServletResponse resp)
throws ServletException,
IOException
- Processes a GET request.
- Overrides:
doGet in class HttpServlet
- Throws:
ServletException
IOException
© 2001-2007 Shawn Silverman