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

public class HarvestServlet extends javax.servlet.http.HttpServlet implements Serializable
Servlet for harvesting crowdsourcing data and overview pages.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for HarvestServlet.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 class javax.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 - a List object.
      Returns:
      a JSONArray object.