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