Class CorpusDocumentAnnotationsZScores
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- io.outofprintmagazine.web.servlets.AbstractOOPServlet
-
- io.outofprintmagazine.web.servlets.AbstractOOPCacheableServlet
-
- io.outofprintmagazine.web.rest.api.CorpusDocumentAnnotationsZScores
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
@Path("/CorpusDocumentAnnotationsZScores") public class CorpusDocumentAnnotationsZScores extends AbstractOOPCacheableServlet
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class io.outofprintmagazine.web.servlets.AbstractOOPCacheableServlet
lastModified
-
-
Constructor Summary
Constructors Constructor Description CorpusDocumentAnnotationsZScores()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
calculateZScores(com.fasterxml.jackson.databind.node.ObjectNode corpusAggregates, com.fasterxml.jackson.databind.node.ObjectNode documentAggregates, String aggregateName, com.fasterxml.jackson.databind.node.ArrayNode retval)
String
doGet(String targetCorpus, String corpus, String document, String aggregateName)
-
Methods inherited from class io.outofprintmagazine.web.servlets.AbstractOOPCacheableServlet
getLastModified, init, setCacheControl
-
Methods inherited from class io.outofprintmagazine.web.servlets.AbstractOOPServlet
calculateSimilarity, createObject, createObjectCloud, createObjectTidy, generatePst, getAnnotationDescription, getMapper, getStorage, plainTextToHtml, reformatTidyArray, setAnnotationDescriptionsAttribute, setContentTypeJson, setDocumentListAttribute, setMetadataAttributes, setPstAttribute, setStatsAttribute
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, service, service
-
-
-
-
Method Detail
-
doGet
@GET @Produces("application/json; charset=utf-8") public String doGet(@QueryParam("TargetCorpus") String targetCorpus, @QueryParam("Corpus") String corpus, @QueryParam("Document") String document, @QueryParam("AggregateName") String aggregateName) throws com.fasterxml.jackson.core.JsonProcessingException, IOException, javax.servlet.ServletException
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
IOException
javax.servlet.ServletException
-
calculateZScores
protected void calculateZScores(com.fasterxml.jackson.databind.node.ObjectNode corpusAggregates, com.fasterxml.jackson.databind.node.ObjectNode documentAggregates, String aggregateName, com.fasterxml.jackson.databind.node.ArrayNode retval)
-
-