| javax.servlet.http.HttpServlet de.danet.an.util.web.ResourceServlet
ResourceServlet | public class ResourceServlet extends HttpServlet (Code) | | This class provides a servlet for accessing resources. The servlet
uses the extra path info, prepends a configurable prefix, and looks
up a resource with the resulting name. The prefix defaults to
"web-resource ". It can be altered by setting the
initialization parameter "lookupPrefix ".
If the requested resource is found, the resource (i.e. its content)
is returned. The content type of the response is derived from the
resource's suffix. If the resource cannot be found, error 404 is
returned.
To facilitate development, an initialization parameter
"resourceDirectory " may be set. If set, the servlet
will first look for the requested resource in the specified
directory (not prepending the lookup prefix!).
author: Michael N. Lipp version: $Revision: 1.2 $ |
Methods inherited from javax.servlet.http.HttpServlet | protected void doDelete(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doOptions(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected void doTrace(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) protected long getLastModified(HttpServletRequest req)(Code)(Java Doc) protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException(Code)(Java Doc) public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException(Code)(Java Doc)
|
|
|