public class MCmetaHandler
extends java.lang.Object
implements com.merge.mcw.MCbulkDataUriProvider
MCmetaHandler
class is used to parse Multipart Message Body of STORE-RS and NPI-RS Store requests,
containing XML/JSON Metadata and Bulk Data Request Message Body.
The details of HTTP Message Body structure are given in DICOM PS3.18 2017c - Web Services.
6.6.1 STOW-RS Store Instances and 6.10.3.3 Store TransactionConstructor and Description |
---|
MCmetaHandler()
MCmetaHandler constructor |
Modifier and Type | Method and Description |
---|---|
com.merge.mcw.MCattributeSet[] |
getDicomMessages(java.util.Collection<org.apache.http.entity.mime.content.ContentBody> contentBodies)
Returns an array of DICOM messages (
MCattributeSet objects |
java.lang.Object |
provideData(com.merge.mcw.MCattributeSet attrSet,
int tag,
com.merge.mcw.MCvr vr,
java.lang.String uri)
Implements
MCbulkDataUriProvider.provideData() interface method. |
java.lang.String |
provideUri(com.merge.mcw.MCattributeSet attrSet,
int tag,
com.merge.mcw.MCvr vr)
This method will be called when generating XML native or JSON stream for the following vr:
FL, FD, IS, LT, OB, OL, OD, OF, OW, SL, SS, ST, UL, UN, US, or UT.
|
public MCmetaHandler()
MCmetaHandler
constructorpublic com.merge.mcw.MCattributeSet[] getDicomMessages(java.util.Collection<org.apache.http.entity.mime.content.ContentBody> contentBodies)
MCattributeSet
objectscontentBodies
- Collection
of ContentBody
objectsMCattributeSet
spublic java.lang.Object provideData(com.merge.mcw.MCattributeSet attrSet, int tag, com.merge.mcw.MCvr vr, java.lang.String uri)
MCbulkDataUriProvider.provideData()
interface method.
Implementation should provide data for received BulkDataURI from parsing XML native or JSON metadata
by returning an array of data according to the VR type.
If the implementation returns null, the incoming attribute will contain a ValueLength of 0
(i.e. attribute in message but zero value length).provideData
in interface com.merge.mcw.MCbulkDataUriProvider
attrSet
- Identifies the current Attribute set in processtag
- The attribute tagvr
- The attribute representationuri
- The received uripublic java.lang.String provideUri(com.merge.mcw.MCattributeSet attrSet, int tag, com.merge.mcw.MCvr vr)
provideUri
in interface com.merge.mcw.MCbulkDataUriProvider
attrSet
- Identifies the current Attribute set in processtag
- The attribute tagvr
- The attribute representation