Package com.composum.sling.nodes.servlet
Class NodeServlet.HtmlQueryOperation
- java.lang.Object
-
- com.composum.sling.nodes.servlet.NodeServlet.AbstractQueryOperation
-
- com.composum.sling.nodes.servlet.NodeServlet.HtmlQueryOperation
-
- All Implemented Interfaces:
ServletOperation
- Enclosing class:
- NodeServlet
protected class NodeServlet.HtmlQueryOperation extends NodeServlet.AbstractQueryOperation
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
HtmlQueryOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
writeError(org.apache.sling.api.SlingHttpServletResponse response, String queryString, Exception ex)
protected 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)
Writes the query result in the format appropriate to the output.protected void
writeSummary(String queryString, String message, PrintWriter writer, String cssClasses)
-
Methods inherited from class com.composum.sling.nodes.servlet.NodeServlet.AbstractQueryOperation
accept, doIt, getQueryLimit, getSimpleQuery
-
-
-
-
Method Detail
-
writeQueryResult
protected 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, IOException
Description copied from class:NodeServlet.AbstractQueryOperation
Writes the query result in the format appropriate to the output. Caution: think of escaping appropriately (XSS etc.).- Specified by:
writeQueryResult
in classNodeServlet.AbstractQueryOperation
- Throws:
javax.jcr.RepositoryException
IOException
-
writeSummary
protected void writeSummary(String queryString, String message, PrintWriter writer, String cssClasses)
-
writeError
protected void writeError(org.apache.sling.api.SlingHttpServletResponse response, String queryString, Exception ex) throws IOException
- Overrides:
writeError
in classNodeServlet.AbstractQueryOperation
- Throws:
IOException
-
-