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
Sends static content from the site 's
static/
subdirectory.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gerrit.httpd.raw.ResourceServlet
ResourceServlet.Resource, ResourceServlet.Weigher
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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, processResourceBeforeServe, shouldProcessResourceBeforeServe
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
-
Method Details
-
getResourcePath
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.
-