Package org.elasticsearch.rest

Examples of org.elasticsearch.rest.BytesRestResponse.addHeader()


        } else if (authorized(request)) {
            super.internalDispatchRequest(request, channel);
        } else {
          logUnAuthorizedRequest(request);
          BytesRestResponse response = new BytesRestResponse(UNAUTHORIZED, "Authentication Required");
          response.addHeader("WWW-Authenticate", "Basic realm=\"Restricted\"");
          channel.sendResponse(response);
        }
    }

    private boolean healthCheck(final HttpRequest request) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.