Package io.goobi.viewer.servlets
Class HarvestServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
io.goobi.viewer.servlets.HarvestServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
Servlet for harvesting crowdsourcing data and overview pages.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static org.json.JSONArray
convertToJSON
(long totalCount, List<? extends Harvestable> objects) convertToJSON.protected void
doGet
(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) 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
-
Constructor Details
-
HarvestServlet
public HarvestServlet()Constructor for HarvestServlet.
- See Also:
-
HttpServlet()
-
-
Method Details
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException - Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
convertToJSON
protected static org.json.JSONArray convertToJSON(long totalCount, List<? extends Harvestable> objects) convertToJSON.
- Parameters:
totalCount
- a long.objects
- aList
object.- Returns:
- a
JSONArray
object.
-