Package io.goobi.viewer.servlets
Class HarvestServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
io.goobi.viewer.servlets.HarvestServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
Servlet for harvesting crowdsourcing data and overview pages.
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static org.json.JSONArrayconvertToJSON(long totalCount, List<? extends Harvestable> objects) convertToJSON.protected voiddoGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) Methods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Constructor Details
-
HarvestServlet
public HarvestServlet()Constructor for HarvestServlet.
- See Also:
-
-
Method Details
-
doGet
protected void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws jakarta.servlet.ServletException, IOException - Overrides:
doGetin classjakarta.servlet.http.HttpServlet- Throws:
jakarta.servlet.ServletExceptionIOException
-
convertToJSON
protected static org.json.JSONArray convertToJSON(long totalCount, List<? extends Harvestable> objects) convertToJSON.
- Parameters:
totalCount- a long.objects- aListobject.- Returns:
- a
JSONArrayobject.
-