jnlp.sample.servlet
Class JnlpDownloadServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
jnlp.sample.servlet.JnlpDownloadServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class JnlpDownloadServlet
- extends javax.servlet.http.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
Method Summary |
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
We handle get requests too - eventhough the spec. |
void |
doHead(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
|
static java.util.ResourceBundle |
getResourceBundle()
|
void |
init(javax.servlet.ServletConfig config)
Initialize servlet |
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, log, log |
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(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Initialize servlet
- Specified by:
init
in interface javax.servlet.Servlet
- Overrides:
init
in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
getResourceBundle
public static java.util.ResourceBundle getResourceBundle()
doHead
public void doHead(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- Overrides:
doHead
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
doGet
public void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
java.io.IOException
- We handle get requests too - eventhough the spec. only requeres POST requests
- Overrides:
doGet
in class javax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
Copyright © 2005-2009 Sun Microsystems. All Rights Reserved.