Package net.i2p.servlet
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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidsendDirectory(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
-
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:
sendDirectoryin classorg.eclipse.jetty.ee8.nested.ResourceService- Throws:
IOException
-