Class RetrievedDocument

java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.responses.RetrievedDocument
All Implemented Interfaces:
Serializable

public class RetrievedDocument extends Object implements Serializable
A single document retrieved from the repository.

All members of this class are allowed to be null.

Author:
Jens Riemschneider
See Also:
  • Constructor Details

    • RetrievedDocument

      public RetrievedDocument()
      Constructs the retrieved document.
    • RetrievedDocument

      public RetrievedDocument(javax.activation.DataHandler dataHandler, DocumentReference requestData, String newRepositoryUniqueId, String newDocumentUniqueId, String mimeType)
      Constructs the retrieved document.
      Parameters:
      dataHandler - the data handler allowing access to the content of the document.
      requestData - the data specified in the request.
      newRepositoryUniqueId - ID of the Document Repository that will support retrieval of the document created as a result of retrieval of the On-Demand Document (required when the On-Demand Document Source supports the Persistence of Retrieved Documents Option).
      newDocumentUniqueId - ID of the document created as a result of retrieval of the On-Demand Document.
      mimeType - MIME type of the document.
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDataHandler

      public javax.activation.DataHandler getDataHandler()
    • setDataHandler

      public void setDataHandler(javax.activation.DataHandler dataHandler)
    • getRequestData

      public DocumentReference getRequestData()
    • setRequestData

      public void setRequestData(DocumentReference requestData)
    • getMimeType

      public String getMimeType()
    • setMimeType

      public void setMimeType(String mimeType)
    • getNewRepositoryUniqueId

      public String getNewRepositoryUniqueId()
    • setNewRepositoryUniqueId

      public void setNewRepositoryUniqueId(String newRepositoryUniqueId)
    • getNewDocumentUniqueId

      public String getNewDocumentUniqueId()
    • setNewDocumentUniqueId

      public void setNewDocumentUniqueId(String newDocumentUniqueId)