Class AbstractOOPServlet

    • Constructor Detail

      • AbstractOOPServlet

        public AbstractOOPServlet()
    • Method Detail

      • init

        public void init​(javax.servlet.ServletConfig config)
                  throws javax.servlet.ServletException
        Specified by:
        init in interface javax.servlet.Servlet
        Overrides:
        init in class javax.servlet.GenericServlet
        Throws:
        javax.servlet.ServletException
      • getStorage

        protected IStorage getStorage()
      • getMapper

        protected com.fasterxml.jackson.databind.ObjectMapper getMapper()
      • generatePst

        protected org.jsoup.nodes.Element generatePst​(com.fasterxml.jackson.databind.JsonNode stats)
      • setPstAttribute

        protected void setPstAttribute​(javax.servlet.http.HttpServletRequest request,
                                       String corpus,
                                       String document)
                                throws IOException
        Throws:
        IOException
      • setMetadataAttributes

        protected void setMetadataAttributes​(javax.servlet.http.HttpServletRequest request,
                                             String corpus,
                                             String document)
                                      throws IOException
        Throws:
        IOException
      • setStatsAttribute

        protected void setStatsAttribute​(javax.servlet.http.HttpServletRequest request,
                                         String corpus,
                                         String document)
                                  throws IOException
        Throws:
        IOException
      • getAnnotationDescription

        protected com.fasterxml.jackson.databind.node.ObjectNode getAnnotationDescription​(String corpus,
                                                                                          String document,
                                                                                          String annotation)
                                                                                   throws IOException
        Throws:
        IOException
      • setAnnotationDescriptionsAttribute

        protected void setAnnotationDescriptionsAttribute​(javax.servlet.http.HttpServletRequest request,
                                                          String corpus,
                                                          String document)
                                                   throws IOException
        Throws:
        IOException
      • setContentTypeJson

        protected void setContentTypeJson​(javax.servlet.http.HttpServletResponse response)
      • createObjectTidy

        protected com.fasterxml.jackson.databind.node.ObjectNode createObjectTidy​(int id,
                                                                                  String name,
                                                                                  BigDecimal score)
      • createObject

        protected com.fasterxml.jackson.databind.node.ObjectNode createObject​(int id,
                                                                              String name,
                                                                              BigDecimal score)
      • createObjectCloud

        protected com.fasterxml.jackson.databind.node.ObjectNode createObjectCloud​(int id,
                                                                                   String name,
                                                                                   BigDecimal score)
      • reformatTidyArray

        protected com.fasterxml.jackson.databind.node.ArrayNode reformatTidyArray​(com.fasterxml.jackson.databind.node.ArrayNode input,
                                                                                  String format)
      • setDocumentListAttribute

        protected void setDocumentListAttribute​(javax.servlet.http.HttpServletRequest request,
                                                String corpus)
                                         throws IOException
        Throws:
        IOException