Code example for HttpResponse

Methods: setEntitysetStatusCode

			@SuppressWarnings("rawtypes") Map jsonData) {
		// Check if body data was given 
		if (jsonData != null) {
			JSONObject body = new JSONObject(jsonData);
			response.setEntity(new JsonResponse(body));
	 * Sends a 400 to the client. 
	 * @param response The response object to use. 
	 * @param message The user-readable error message. 
	protected void respondBadRequest(HttpResponse response, String message) {
Stop searching for code, let great code find you!  Add Codota to your java IDE