com.qindesign.servlet.example
Class ServerPushServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.qindesign.servlet.example.ServerPushServlet
- All Implemented Interfaces:
- Serializable, 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
- See Also:
- Multipurpose Internet
Mail Extensions (MIME) Part Two: Media Types,
Serialized Form
| 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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