Class BatchResponseIntermediary

java.lang.Object
org.openehealth.ipf.commons.ihe.hpd.stub.dsmlv2.BatchResponseIntermediary

public class BatchResponseIntermediary extends Object
Intermediary representation of an HPD BatchResponse required because the JSON deserializer cannot handle lists of JAXBElements.

Usage:

     ObjectMapper mapper = new ObjectMapper();
     BatchResponseIntermediary intermediary = mapper.readValue(json1, BatchResponseIntermediary.class);
     BatchResponse batchResponse = batchResponseIntermediary.toBatchResponse();
 
Author:
Dmytro Rud
  • Constructor Details

    • BatchResponseIntermediary

      public BatchResponseIntermediary()
  • Method Details

    • toBatchResponse

      public BatchResponse toBatchResponse()
      Transforms this intermediary representation into a proper JAXB POJO.
    • getBatchResponses

      public List<BatchResponseElement> getBatchResponses()
    • setBatchResponses

      public void setBatchResponses(List<BatchResponseElement> batchResponses)
    • getRequestID

      public String getRequestID()
    • setRequestID

      public void setRequestID(String requestID)