src/org/ohmage/request/mobility/MobilityDatesReadRequest.java
@Override
	public void respond(
			final HttpServletRequest httpRequest,
			final HttpServletResponse httpResponse) {
		
		LOGGER.info("Responding to the Mobiltiy dates read request.");

		JSONArray resultJson = new JSONArray();
		
		for(DateTime date : dates) {
			resultJson.put(DateTimeUtils.getIso8601DateString(date, false));
		}
		
		respond(httpRequest, httpResponse, JSON_KEY_DATA, resultJson);
	}
/**
	 * Converts the list of dates to a JSONArray and returns it to the caller.
	 */
Converts the list of dates to a JSONArray and returns it to the caller.
Converts the list of dates to a JSONArray and returns it to the caller .
@Override
	public void respond(
			final HttpServletRequest httpRequest,
			final HttpServletResponse httpResponse) {
		LOGGER.info("Responding to the Mobiltiy dates read request.");
		JSONArray resultJson = new JSONArray();
		for(DateTime date : dates) {
			resultJson.put(DateTimeUtils.getIso8601DateString(date, false));
		}
		respond(httpRequest, httpResponse, JSON_KEY_DATA, resultJson);
	}
@ Override public void respond ( final HttpServletRequest httpRequest , final HttpServletResponse httpResponse ) { LOGGER . info ( "Responding to the Mobiltiy dates read request." ) ; JSONArray resultJson = new JSONArray ( ) ; for ( DateTime date : dates ) { resultJson . put ( DateTimeUtils . getIso8601DateString ( date , false ) ) ; } respond ( httpRequest , httpResponse , JSON_KEY_DATA , resultJson ) ; }
Converts the list of dates to a JSONArray and returns it to the caller.
Converts the list of dates to a JSONArray and returns it to the caller .