Class MavenRepositoryCache
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.aoapps.maven.repository.cache.MavenRepositoryCache
- All Implemented Interfaces:
Servlet,ServletConfig,Serializable
Lightweight, self-hosted Maven Central cache with upstream request throttling, deployable as a web application (WAR).
- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()protected voiddoGet(HttpServletRequest req, HttpServletResponse resp) protected voiddoHead(HttpServletRequest req, HttpServletResponse resp) protected longvoidinit(ServletConfig config) protected voidservice(HttpServletRequest req, HttpServletResponse resp) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doOptions, doPost, doPut, doTrace, serviceMethods inherited from class jakarta.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
MavenRepositoryCache
public MavenRepositoryCache()
-
-
Method Details
-
init
- Specified by:
initin interfaceServlet- Overrides:
initin classHttpServlet- Throws:
ServletException
-
destroy
public void destroy()- Specified by:
destroyin interfaceServlet- Overrides:
destroyin classGenericServlet
-
service
protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException - Overrides:
servicein classHttpServlet- Throws:
ServletExceptionIOException
-
getLastModified
- Overrides:
getLastModifiedin classHttpServlet
-
doHead
protected void doHead(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException - Overrides:
doHeadin classHttpServlet- Throws:
ServletExceptionIOException
-
doGet
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException - Overrides:
doGetin classHttpServlet- Throws:
ServletExceptionIOException
-
