Class NodeServlet.AbstractQueryOperation

    • Constructor Detail

      • AbstractQueryOperation

        protected AbstractQueryOperation()
    • Method Detail

      • doIt

        public void doIt​(@NotNull
                         @NotNull org.apache.sling.api.SlingHttpServletRequest request,
                         @NotNull
                         @NotNull org.apache.sling.api.SlingHttpServletResponse response,
                         ResourceHandle resource)
                  throws javax.servlet.ServletException,
                         IOException
        Specified by:
        doIt in interface ServletOperation
        Throws:
        javax.servlet.ServletException
        IOException
      • accept

        protected boolean accept​(ResourceFilter filter,
                                 org.apache.sling.api.resource.Resource resource)
      • getQueryLimit

        @Nullable
        protected @Nullable Long getQueryLimit()
      • writeQueryResult

        protected abstract void writeQueryResult​(org.apache.sling.api.SlingHttpServletRequest request,
                                                 org.apache.sling.api.SlingHttpServletResponse response,
                                                 String queryString,
                                                 javax.jcr.query.QueryResult result,
                                                 ResourceFilter filter,
                                                 org.apache.sling.api.resource.ResourceResolver resolver)
                                          throws javax.jcr.RepositoryException,
                                                 javax.servlet.ServletException,
                                                 IOException
        Writes the query result in the format appropriate to the output. Caution: think of escaping appropriately (XSS etc.).
        Throws:
        javax.jcr.RepositoryException
        javax.servlet.ServletException
        IOException