:cat index.html code example
Example: java program to get all cat indices in elasticsearch javadoc
GetIndexRequest request = new GetIndexRequest().indices("*");
GetIndexResponse response = client.indices().get(request, RequestOptions.DEFAULT);
String[] indices = response.getIndices();