public interface DownloadableDatatypeHandler<T> extends CustomDatatypeHandler<CustomDatatype<T>,T>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContentType(CustomDatatype<T> dt,
java.lang.String valueReference) |
java.lang.String |
getFilename(CustomDatatype<T> dt,
java.lang.String valueReference) |
void |
writeToStream(CustomDatatype<T> dt,
java.lang.String valueReference,
java.io.OutputStream os)
Writes the custom value to os.
|
setHandlerConfiguration
java.lang.String getContentType(CustomDatatype<T> dt, java.lang.String valueReference)
dt
- the datatype this handler handlesvalueReference
- custom value to be downloadedjava.lang.String getFilename(CustomDatatype<T> dt, java.lang.String valueReference)
dt
- the datatype this handler handlesvalueReference
- custom value to be downloadedvoid writeToStream(CustomDatatype<T> dt, java.lang.String valueReference, java.io.OutputStream os) throws java.io.IOException
dt
- the datatype this handler handlesvalueReference
- custom value to be written to osos
- the output stream to be written tojava.io.IOException
- if there is an IO error writing to the streamCopyright © 2018 OpenMRS Inc.. All Rights Reserved.