Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

JSPservletPkg
Class JSPresourceServlet  view JSPresourceServlet download JSPresourceServlet.java

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byJSPservletPkg.JSPresourceServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class JSPresourceServlet
extends javax.servlet.http.HttpServlet

Resource handling servlet.

Copyright (c) 2000-2001

 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
 as published by the Free Software Foundation; version 2
 of the License.
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 

Version:
1, 0

Field Summary
(package private)  JSPhandler.ClassEntry classEntry
           
private static java.text.SimpleDateFormat sdf
          SimpleDateFormat used to build RFC conformant strings
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
JSPresourceServlet(JSPhandler.ClassEntry ce)
          Constructor.
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          GET request handling.
static java.lang.String getJAR(java.lang.ClassLoader cl)
          Service method for servlet using RequestDispatcher.
 void init(javax.servlet.ServletConfig config)
          Invoked by Servlet container.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, 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
 

Field Detail

classEntry

JSPhandler.ClassEntry classEntry

sdf

private static final java.text.SimpleDateFormat sdf
SimpleDateFormat used to build RFC conformant strings

Constructor Detail

JSPresourceServlet

public JSPresourceServlet(JSPhandler.ClassEntry ce)
Constructor.

Method Detail

init

public void init(javax.servlet.ServletConfig config)
          throws javax.servlet.ServletException
Invoked by Servlet container.


doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
GET request handling. No exception:
  1. The JES2 handling is rude.
  2. Exceptions are likely to happen because the response is already commited. So I silently return.


getJAR

public static final java.lang.String getJAR(java.lang.ClassLoader cl)
Service method for servlet using RequestDispatcher. Its use is optional. It returns the jar name part of the path. We recommend however its use as the servlet developer should not be aware of its packaging.