public void handle(HttpServletRequest req, HttpServletResponse resp) throws ServletException,
IOException, NotFoundException, UnauthorisedException, JsonConversionException {
String json = getJsonAsString(req, maxJsonQueryLength);
GetIndicesRequest request = MessageLibrary.getIndicesRequestFromJson(json);
String response = MessageLibrary.toJson(protocol.getIndices(request));
resp.setContentType(MessageLibrary.MIMETYPE_JSON);
resp.setCharacterEncoding(MessageLibrary.CHARSET);
resp.setStatus(HttpServletResponse.SC_OK);