java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
JSPservletPkg.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
| Fields inherited from class javax.servlet.http.HttpServlet |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
classEntry
JSPhandler.ClassEntry classEntry
sdf
private static final java.text.SimpleDateFormat sdf
- SimpleDateFormat used to build RFC conformant strings
JSPresourceServlet
public JSPresourceServlet(JSPhandler.ClassEntry ce)
- Constructor.
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:
- The JES2 handling is rude.
- 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.