Package com.composum.sling.nodes.servlet
Class NodeServlet.JsonQueryOperation
- java.lang.Object
-
- com.composum.sling.nodes.servlet.NodeServlet.AbstractQueryOperation
-
- com.composum.sling.nodes.servlet.NodeServlet.JsonQueryOperation
-
- All Implemented Interfaces:
ServletOperation
- Enclosing class:
- NodeServlet
protected class NodeServlet.JsonQueryOperation extends NodeServlet.AbstractQueryOperation
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
JsonQueryOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class com.composum.sling.nodes.servlet.NodeServlet.AbstractQueryOperation
accept, doIt, getQueryLimit, getSimpleQuery, writeError
-
-
-
-
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
-
-