Class QueryClient

All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.http.client.HttpClient

public class QueryClient extends SlingClient

Sling client for performing oak queries.

Uses a custom servlet QueryServlet to execute the query on the server and return the results as a json. If the servlet is not yet present, it automatically installs it and creates the corresponding nodes

The servlet is exposed under "/system/testing/query".

The servlet is not automatically uninstalled to avoid too much noise on the instance. The caller should take care of it, if needed, by calling uninstallServlet()