Class JSONReconcileServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
-
- edu.cornell.mannlib.vitro.webapp.controller.grefine.JSONReconcileServlet
-
- All Implemented Interfaces:
MultipartRequestWrapper.ParsingStrategy,Serializable,javax.servlet.Servlet,javax.servlet.ServletConfig
@WebServlet(name="JSON Reconcile Service", urlPatterns="/reconcile") public class JSONReconcileServlet extends VitroHttpServletThis servlet is for servicing JSON requests from Google Refine's Reconciliation Service.- Author:
- Eliza Chan (elc2013@med.cornell.edu)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classJSONReconcileServlet.SearchResult-
Nested classes/interfaces inherited from class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
VitroHttpServlet.PickListSorter
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_QUERY_LENGTH-
Fields inherited from class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
HTML_MIMETYPE, JSON_LD_MIMETYPE, JSON_MIMETYPE, N3_MIMETYPE, publicDateFormat, RDFXML_MIMETYPE, TTL_MIMETYPE, XHTML_MIMETYPE
-
-
Constructor Summary
Constructors Constructor Description JSONReconcileServlet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)doGet does nothing.protected voiddoPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp)doPost does the same thing as the doGet methodprotected com.fasterxml.jackson.databind.node.ObjectNodegetMetadata(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String defaultNamespace, String defaultTypeList, String serverName, int serverPort)Returns a default JSON response.protected SearchQuerygetQuery(String queryStr, String searchType, int limit, ArrayList<String[]> propertiesList)-
Methods inherited from class edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet
dumpRequestParameters, isAuthorizedToDisplayPage, maximumMultipartFileSize, redirectToInsufficientAuthorizationPage, redirectToLoginPage, redirectUnauthorizedRequest, service, sortForPickList, stashFileSizeException
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service
-
-
-
-
Field Detail
-
MAX_QUERY_LENGTH
public static final int MAX_QUERY_LENGTH
- See Also:
- Constant Field Values
-
-
Method Detail
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOExceptionDescription copied from class:VitroHttpServletdoPost does the same thing as the doGet method- Overrides:
doPostin classVitroHttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOExceptionDescription copied from class:VitroHttpServletdoGet does nothing.- Overrides:
doGetin classVitroHttpServlet- Throws:
javax.servlet.ServletExceptionIOException
-
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.ServletExceptionReturns a default JSON response.- Parameters:
req- Servlet Requestresp- Servlet Response- Throws:
javax.servlet.ServletException
-
getQuery
protected SearchQuery getQuery(String queryStr, String searchType, int limit, ArrayList<String[]> propertiesList)
-
-