jnlp.sample.servlet
Class JnlpDownloadServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
jnlp.sample.servlet.JnlpDownloadServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class JnlpDownloadServlet
- extends HttpServlet
This Servlet class is an implementation of JNLP Specification's
Download Protocols.
All requests to this servlet is in the form of HTTP GET commands.
The parameters that are needed are:
arch
,
os
,
locale
,
version-id
or platform-version-id
,
current-version-id
,
- code>known-platforms
- Version:
- 1.8 01/23/03
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JnlpDownloadServlet
public JnlpDownloadServlet()
init
public void init(ServletConfig config)
throws ServletException
- Initialize servlet
- Specified by:
init
in interface Servlet
- Overrides:
init
in class GenericServlet
- Throws:
ServletException
getResourceBundle
public static ResourceBundle getResourceBundle()
doHead
public void doHead(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- Overrides:
doHead
in class HttpServlet
- Throws:
ServletException
IOException
doGet
public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws ServletException,
IOException
- We handle get requests too - eventhough the spec. only requeres POST requests
- Overrides:
doGet
in class HttpServlet
- Throws:
ServletException
IOException
Copyright © 2005-2011 Sun Microsystems. All Rights Reserved.