this.settingsFilter = settingsFilter;
}
@Override public void handleRequest(final RestRequest request, final RestChannel channel) {
IndicesExistsRequest indicesExistsRequest = new IndicesExistsRequest(splitIndices(request.param("index")));
// we just send back a response, no need to fork a listener
indicesExistsRequest.listenerThreaded(false);
client.admin().indices().exists(indicesExistsRequest, new ActionListener<IndicesExistsResponse>() {
@Override public void onResponse(IndicesExistsResponse response) {
try {
if (response.exists()) {
channel.sendResponse(new StringRestResponse(OK));