jnlp.sample.servlet
Class JnlpDownloadServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by 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:

Version:
1.8 01/23/03
See Also:
Serialized Form

Constructor Summary
JnlpDownloadServlet()
           
 
Method Summary
 void doGet(HttpServletRequest request, HttpServletResponse response)
          We handle get requests too - eventhough the spec.
 void doHead(HttpServletRequest request, HttpServletResponse response)
           
static ResourceBundle getResourceBundle()
           
 void init(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
 

Constructor Detail

JnlpDownloadServlet

public JnlpDownloadServlet()
Method Detail

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.