@Override public void addResponse(JSONObject response) { this.setResponse(response.toString()); }
@Override public IncomingMatchRequest parseIncomingRequest(JSONObject jsonRequest, String remoteServerId) { JSONObject patientJSON = jsonRequest.optJSONObject(ApiConfiguration.JSON_PATIENT); Patient requestPatient = this.patientConverter.convert(patientJSON); DefaultIncomingMatchRequest request = new DefaultIncomingMatchRequest(remoteServerId, this.apiVersion, jsonRequest.toString(), requestPatient); this.logger.debug("JSON->IncomingRequest done"); return request; } }
public void saveUnprocessedRequest(String requestString, String remoteServerId, String apiVersion) { IncomingMatchRequest request = new DefaultIncomingMatchRequest(remoteServerId, apiVersion, requestString, null); requestStorageManager.saveIncomingRequest(request); }