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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RetrievedDocument()
Constructs the retrieved document.RetrievedDocument(javax.activation.DataHandler dataHandler, DocumentReference requestData, String newRepositoryUniqueId, String newDocumentUniqueId, String mimeType)
Constructs the retrieved document.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
javax.activation.DataHandler
getDataHandler()
String
getMimeType()
String
getNewDocumentUniqueId()
String
getNewRepositoryUniqueId()
DocumentReference
getRequestData()
int
hashCode()
void
setDataHandler(javax.activation.DataHandler dataHandler)
void
setMimeType(String mimeType)
void
setNewDocumentUniqueId(String newDocumentUniqueId)
void
setNewRepositoryUniqueId(String newRepositoryUniqueId)
void
setRequestData(DocumentReference requestData)
String
toString()
-
-
-
Constructor Detail
-
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 Detail
-
canEqual
protected boolean canEqual(Object other)
-
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)
-
-