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:
 com.composum.sling.core.servlet.ServletOperation
- Enclosing class:
 - NodeServlet
 
protected class NodeServlet.HtmlQueryOperation extends NodeServlet.AbstractQueryOperation
 
- 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedHtmlQueryOperation() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidwriteError(org.apache.sling.api.SlingHttpServletResponse response, String queryString, Exception ex)protected voidwriteQueryResult(org.apache.sling.api.SlingHttpServletRequest request, org.apache.sling.api.SlingHttpServletResponse response, String queryString, javax.jcr.query.QueryResult result, com.composum.sling.core.filter.ResourceFilter filter, org.apache.sling.api.resource.ResourceResolver resolver)Writes the query result in the format appropriate to the output.protected voidwriteSummary(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, com.composum.sling.core.filter.ResourceFilter filter, org.apache.sling.api.resource.ResourceResolver resolver) throws javax.jcr.RepositoryException, IOExceptionDescription copied from class:NodeServlet.AbstractQueryOperationWrites the query result in the format appropriate to the output. Caution: think of escaping appropriately (XSS etc.).- Specified by:
 writeQueryResultin classNodeServlet.AbstractQueryOperation- Throws:
 javax.jcr.RepositoryExceptionIOException
 
- 
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:
 writeErrorin classNodeServlet.AbstractQueryOperation- Throws:
 IOException
 
 - 
 
 -