Class 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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      HarvestServlet()
      Constructor for HarvestServlet.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      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
    • Constructor Detail

      • HarvestServlet

        public HarvestServlet()

        Constructor for HarvestServlet.

        See Also:
        HttpServlet()
    • Method Detail

      • 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.