src/org/ohmage/request/user/UserInfoReadRequest.java
@Override
	public void respond(HttpServletRequest httpRequest, HttpServletResponse httpResponse) {
		LOGGER.info("Responding to the user info read request.");
		
		JSONObject jsonResult = new JSONObject();
		
		if(result != null) {
			try {
				jsonResult.put(gUsername, result.toJsonObject());
			}
			catch(JSONException e) {
				LOGGER.error("There was an error building the JSONObject result.", e);
				setFailed();
			}
		}
		
		super.respond(httpRequest, httpResponse, jsonResult);
	}
/**
	 * Responds to the user with either a success message and the information
	 * about the requesting user or a failure message with an explanation.
	 */
Responds to the user with either a success message and the information
about the requesting user or a failure message with an explanation.
Responds to the user with either a success message and the information about the requesting user or a failure message with an explanation .
@Override
	public void respond(HttpServletRequest httpRequest, HttpServletResponse httpResponse) {
		LOGGER.info("Responding to the user info read request.");
		JSONObject jsonResult = new JSONObject();
		if(result != null) {
			try {
				jsonResult.put(gUsername, result.toJsonObject());
			}
			catch(JSONException e) {
				LOGGER.error("There was an error building the JSONObject result.", e);
				setFailed();
			}
		}
		super.respond(httpRequest, httpResponse, jsonResult);
	}
@ Override public void respond ( HttpServletRequest httpRequest , HttpServletResponse httpResponse ) { LOGGER . info ( "Responding to the user info read request." ) ; JSONObject jsonResult = new JSONObject ( ) ; if ( result != null ) { try { jsonResult . put ( gUsername , result . toJsonObject ( ) ) ; } catch ( JSONException e ) { LOGGER . error ( "There was an error building the JSONObject result." , e ) ; setFailed ( ) ; } } super . respond ( httpRequest , httpResponse , jsonResult ) ; }
Responds to the user with either a success message and the information
 about the requesting user or a failure message with an explanation.
Responds to the user with either a success message and the information about the requesting user or a failure message with an explanation .