Class JSONReconcileServlet

  • All Implemented Interfaces:
    MultipartRequestWrapper.ParsingStrategy, Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

    @WebServlet(name="JSON Reconcile Service",
                urlPatterns="/reconcile")
    public class JSONReconcileServlet
    extends VitroHttpServlet
    This servlet is for servicing JSON requests from Google Refine's Reconciliation Service.
    Author:
    Eliza Chan (elc2013@med.cornell.edu)
    See Also:
    Serialized Form
    • Constructor Detail

      • JSONReconcileServlet

        public JSONReconcileServlet()
    • Method Detail

      • doPost

        protected void doPost​(javax.servlet.http.HttpServletRequest req,
                              javax.servlet.http.HttpServletResponse resp)
                       throws javax.servlet.ServletException,
                              IOException
        Description copied from class: VitroHttpServlet
        doPost does the same thing as the doGet method
        Overrides:
        doPost in class VitroHttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • doGet

        protected void doGet​(javax.servlet.http.HttpServletRequest req,
                             javax.servlet.http.HttpServletResponse resp)
                      throws javax.servlet.ServletException,
                             IOException
        Description copied from class: VitroHttpServlet
        doGet does nothing.
        Overrides:
        doGet in class VitroHttpServlet
        Throws:
        javax.servlet.ServletException
        IOException
      • getMetadata

        protected com.fasterxml.jackson.databind.node.ObjectNode getMetadata​(javax.servlet.http.HttpServletRequest req,
                                                                             javax.servlet.http.HttpServletResponse resp,
                                                                             String defaultNamespace,
                                                                             String defaultTypeList,
                                                                             String serverName,
                                                                             int serverPort)
                                                                      throws javax.servlet.ServletException
        Returns a default JSON response.
        Parameters:
        req - Servlet Request
        resp - Servlet Response
        Throws:
        javax.servlet.ServletException