src/org/ohmage/request/survey/annotation/SurveyResponseAnnotationReadRequest.java
@Override
	public void respond(HttpServletRequest httpRequest, HttpServletResponse httpResponse) {
		LOGGER.info("Responding to the survey response annotation read request.");

		if(isFailed()) {
			super.respond(httpRequest, httpResponse, (JSONObject) null);
			return;
		}

		// Build the result object.
		JSONArray resultJson = new JSONArray();
		for(Annotation result : annotationsToReturn) {
			resultJson.put(result.toJson());
		}
		super.respond(httpRequest, httpResponse, RESULT_KEY, resultJson);	
	}
/**
	 * Responds to the this request with success or a failure message
	 * that contains a failure code and failure text.
	 */
Responds to the this request with success or a failure message
that contains a failure code and failure text.
Responds to the this request with success or a failure message that contains a failure code and failure text .
@Override
	public void respond(HttpServletRequest httpRequest, HttpServletResponse httpResponse) {
		LOGGER.info("Responding to the survey response annotation read request.");
		if(isFailed()) {
			super.respond(httpRequest, httpResponse, (JSONObject) null);
			return;
		}
		JSONArray resultJson = new JSONArray();
		for(Annotation result : annotationsToReturn) {
			resultJson.put(result.toJson());
		}
		super.respond(httpRequest, httpResponse, RESULT_KEY, resultJson);	
	}
@ Override public void respond ( HttpServletRequest httpRequest , HttpServletResponse httpResponse ) { LOGGER . info ( "Responding to the survey response annotation read request." ) ; if ( isFailed ( ) ) { super . respond ( httpRequest , httpResponse , ( JSONObject ) null ) ; return ; } JSONArray resultJson = new JSONArray ( ) ; for ( Annotation result : annotationsToReturn ) { resultJson . put ( result . toJson ( ) ) ; } super . respond ( httpRequest , httpResponse , RESULT_KEY , resultJson ) ; }
Responds to the this request with success or a failure message
 that contains a failure code and failure text.
Responds to the this request with success or a failure message that contains a failure code and failure text .
// Build the result object.