Class StaticServlet

  • All Implemented Interfaces:
    Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, org.eclipse.jetty.server.ResourceService.WelcomeFactory, org.eclipse.jetty.util.resource.ResourceFactory

    public class StaticServlet
    extends org.eclipse.jetty.servlet.DefaultServlet
    Since:
    2.0
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.eclipse.jetty.servlet.DefaultServlet

        CONTEXT_INIT
    • Constructor Summary

      Constructors 
      Constructor Description
      StaticServlet​(String resourceBase)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void doGet​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)  
      String getInitParameter​(String name)  
      • Methods inherited from class org.eclipse.jetty.servlet.DefaultServlet

        destroy, doHead, doOptions, doPost, doTrace, getResource, getWelcomeFile, init, initContextHandler
      • Methods inherited from class javax.servlet.http.HttpServlet

        doDelete, doPut, getLastModified, service, service
      • Methods inherited from class javax.servlet.GenericServlet

        getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
    • Constructor Detail

      • StaticServlet

        public StaticServlet​(String resourceBase)
    • Method Detail

      • getInitParameter

        public String getInitParameter​(String name)
        Specified by:
        getInitParameter in interface javax.servlet.ServletConfig
        Overrides:
        getInitParameter in class org.eclipse.jetty.servlet.DefaultServlet
      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws javax.servlet.ServletException,
                          IOException
        Overrides:
        doGet in class org.eclipse.jetty.servlet.DefaultServlet
        Throws:
        javax.servlet.ServletException
        IOException