Package com.google.gerrit.httpd.raw
Class SiteStaticDirectoryServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.google.gerrit.httpd.raw.ResourceServlet
-
- com.google.gerrit.httpd.raw.SiteStaticDirectoryServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class SiteStaticDirectoryServlet extends ResourceServlet
Sends static content from the site 'sstatic/
subdirectory.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.gerrit.httpd.raw.ResourceServlet
ResourceServlet.Resource, ResourceServlet.Weigher
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Path
getResourcePath(String pathInfo)
Get the resource path on the filesystem that should be served for this request.-
Methods inherited from class com.google.gerrit.httpd.raw.ResourceServlet
contentType, doGet, getLastModifiedTime
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
-
-
-
-
Method Detail
-
getResourcePath
protected Path getResourcePath(String pathInfo)
Description copied from class:ResourceServlet
Get the resource path on the filesystem that should be served for this request.- Specified by:
getResourcePath
in classResourceServlet
- Parameters:
pathInfo
- result ofHttpServletRequest.getPathInfo()
.- Returns:
- path where static content can be found.
-
-