src/org/ohmage/request/ConfigReadRequest.java
@Override
	public void respond(HttpServletRequest httpRequest, HttpServletResponse httpResponse) {
		LOGGER.info("Writing configuration read response.");
		
		try {
			JSONObject response = new JSONObject();
			response.put(JSON_KEY_DATA, (result == null) ? null : result.toJson());
			respond(
					httpRequest, 
					httpResponse,
					response);
		}
		catch(JSONException e) {
			LOGGER.error("Error building the JSONObject.", e);
			setFailed();
			respond(httpRequest, httpResponse, null);
		}
	}
/**
	 * Writes the response to the client.
	 */
Writes the response to the client.
Writes the response to the client .
@Override
	public void respond(HttpServletRequest httpRequest, HttpServletResponse httpResponse) {
		LOGGER.info("Writing configuration read response.");
		try {
			JSONObject response = new JSONObject();
			response.put(JSON_KEY_DATA, (result == null) ? null : result.toJson());
			respond(
					httpRequest, 
					httpResponse,
					response);
		}
		catch(JSONException e) {
			LOGGER.error("Error building the JSONObject.", e);
			setFailed();
			respond(httpRequest, httpResponse, null);
		}
	}
@ Override public void respond ( HttpServletRequest httpRequest , HttpServletResponse httpResponse ) { LOGGER . info ( "Writing configuration read response." ) ; try { JSONObject response = new JSONObject ( ) ; response . put ( JSON_KEY_DATA , ( result == null ) ? null : result . toJson ( ) ) ; respond ( httpRequest , httpResponse , response ) ; } catch ( JSONException e ) { LOGGER . error ( "Error building the JSONObject." , e ) ; setFailed ( ) ; respond ( httpRequest , httpResponse , null ) ; } }
Writes the response to the client.
Writes the response to the client .