Class StaticWebServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    public class StaticWebServlet
    extends javax.servlet.http.HttpServlet
    Author:
    semancik
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      protected void doHead​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      protected void serveResource​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, boolean content)  
      • 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, init, log, log
    • Constructor Detail

      • StaticWebServlet

        public StaticWebServlet​(File base)
    • Method Detail

      • doGet

        protected void doGet​(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response)
                      throws IOException,
                             javax.servlet.ServletException
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        IOException
        javax.servlet.ServletException
      • doHead

        protected void doHead​(javax.servlet.http.HttpServletRequest request,
                              javax.servlet.http.HttpServletResponse response)
                       throws IOException,
                              javax.servlet.ServletException
        Overrides:
        doHead in class javax.servlet.http.HttpServlet
        Throws:
        IOException
        javax.servlet.ServletException
      • serveResource

        protected void serveResource​(javax.servlet.http.HttpServletRequest request,
                                     javax.servlet.http.HttpServletResponse response,
                                     boolean content)
                              throws IOException,
                                     javax.servlet.ServletException
        Throws:
        IOException
        javax.servlet.ServletException