Class I2PResourceService

java.lang.Object
org.eclipse.jetty.ee8.nested.ResourceService
net.i2p.servlet.I2PResourceService

public class I2PResourceService extends org.eclipse.jetty.ee8.nested.ResourceService
To customize directory listings. Used by I2PDefaultServlet.
Since:
Jetty 12
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.eclipse.jetty.ee8.nested.ResourceService

    org.eclipse.jetty.ee8.nested.ResourceService.WelcomeFactory
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    sendDirectory(HttpServletRequest request, HttpServletResponse response, Resource resource, String pathInContext)
    Copied and modified from ResourceService.java.

    Methods inherited from class org.eclipse.jetty.ee8.nested.ResourceService

    doGet, getCacheControl, getEncodingCacheSize, getGzipEquivalentFileExtensions, getHttpContentFactory, getPrecompressedFormats, getWelcomeFactory, isAcceptRanges, isDirAllowed, isEtags, isGzippedContent, isPathInfoOnly, isRedirectWelcome, notFound, passConditionalHeaders, putHeaders, sendData, sendStatus, sendWelcome, setAcceptRanges, setCacheControl, setDirAllowed, setEncodingCacheSize, setEtags, setGzipEquivalentFileExtensions, setHttpContentFactory, setPathInfoOnly, setPrecompressedFormats, setRedirectWelcome, setWelcomeFactory

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • I2PResourceService

      public I2PResourceService()
  • Method Details

    • sendDirectory

      protected void sendDirectory(HttpServletRequest request, HttpServletResponse response, Resource resource, String pathInContext) throws IOException
      Copied and modified from ResourceService.java. Overridden to set the Locale for the dates. Get the resource list as a HTML directory listing.
      Overrides:
      sendDirectory in class org.eclipse.jetty.ee8.nested.ResourceService
      Throws:
      IOException