Class BasicServlet

  • All Implemented Interfaces:
    Serializable, Servlet, ServletConfig
    Direct Known Subclasses:
    I2PSnarkServlet

    class BasicServlet
    extends HttpServlet
    Based on DefaultServlet from Jetty 6.1.26, heavily simplified and modified to remove all dependencies on Jetty libs. Supports HEAD and GET only, for resources from the .war and local files. Supports files and resource only. Supports MIME types with local overrides and additions. Supports Last-Modified. Supports single request ranges. Does not support directories or "welcome files". Does not support gzip. Does not support multiple request ranges. Does not cache. POST returns 405. Directories return 403. Jar resources are sent with a long cache directive. ------------------------------------------------------------ The default servlet. This servlet, normally mapped to /, provides the handling for static content, OPTION and TRACE methods for the context. The following initParameters are supported, these can be set on the servlet itself:
                                                                          
    
      resourceBase      Set to replace the context resource base
    
      warBase      Path allowed for resource in war
     
     
    Since:
    Jetty 7
    Author:
    Greg Wilkins (gregw), Nigel Canonizado