public class HangingProtocolSCU extends SCU
| Constructor and Description |
|---|
HangingProtocolSCU(java.net.InetSocketAddress addr)
The InetAddress and port to which user connects.
|
HangingProtocolSCU(SCUSession objSCUSession)
Instantiates a new ORMS_SCU on the SCU session provided by user.
|
HangingProtocolSCU(java.lang.String strIP,
int port)
The IP and port to which user connects.
|
| Modifier and Type | Method and Description |
|---|---|
static ISingleCollection<CStoreRQ> |
getDefaultCStoreRQ(ISingleCollection<IDataSet> objIDataSetColl)
This method makes CStore RQ's according to the given DataSet Collection.
|
void |
send(AssociateRQ objAssociateRQ,
EnumCommandField objEnumCommandField,
java.lang.String strSOPInstanceUID,
ISingleCollection<IDataSet> objDataSetCollection)
Sends the available data sets to the SCP.
|
void |
send(java.lang.String strCallingAETitle,
java.lang.String strCalledAETitle,
EnumCommandField objEnumCommandField,
java.lang.String strSOPInstanceUID,
ISingleCollection<IDataSet> objDataSetCollection)
This method creates association request according to the DataSet collection provided by the user and the Default association.
|
boolean |
sendMessage(DicomMessage objDicomMessage)
This method sends the Request for Hanging Protocol.
|
void |
sendRequestsForCFind(ISingleCollection<CFindRQ> objRQCollection)
This method sends multiple CStore RQ.
|
void |
sendRequestsForCStore(ISingleCollection<CStoreRQ> objRQCollection)
This method sends multiple CStore RQ.
|
boolean |
validateCFindRQ(IDataSet objIDataSet)
Validates request for C_FIND_RQ for its Compulsory and
Conditional attributes specified by DICOM.
|
boolean |
validateCGETRQ(IDataSet objIDataSet)
Validates request for C_GET_RQ for its Compulsory and
Conditional attributes specified by DICOM.
|
getDIMSEAssociation, getDIMSEResponse, receiveMessage, setAssociationStatus, setDIMSEAssociation, setDIMSEResponsepublic HangingProtocolSCU(java.lang.String strIP,
int port)
throws java.io.IOException
strIP - String value of IP to which user connects.port - Port to which user connects.java.io.IOException - Signals IO Exception if IO operation fails.public HangingProtocolSCU(java.net.InetSocketAddress addr)
throws java.io.IOException
addr - InetAddress to which user connects.java.io.IOException - Signals IO Exception if IO operation fails.public HangingProtocolSCU(SCUSession objSCUSession)
objSCUSession - the object of SCU session on which HangingProtocolSCU is to be initiated.public void send(java.lang.String strCallingAETitle,
java.lang.String strCalledAETitle,
EnumCommandField objEnumCommandField,
java.lang.String strSOPInstanceUID,
ISingleCollection<IDataSet> objDataSetCollection)
throws java.io.IOException
strcallingAETitle - value of Calling AE TitlestrCalledAETitle - value of Called AE TitleobjAssociateRQ - The association request i.e. to be sent to SCP.strSOPInstanceUID - SOP Instance UID.objIDataSet - Object of IDataSetjava.io.IOException - Signals IOException if IO operation fails.public void send(AssociateRQ objAssociateRQ, EnumCommandField objEnumCommandField, java.lang.String strSOPInstanceUID, ISingleCollection<IDataSet> objDataSetCollection) throws java.io.IOException
objAssociateRQ - The association request i.e. to be sent to SCP.strSOPInstanceUID - SOP Instance UID.objIDataSet - Object of IDataSetjava.io.IOException - Signals IOException if IO operation fails.public void sendRequestsForCStore(ISingleCollection<CStoreRQ> objRQCollection) throws java.io.IOException
objRQCollection - Collection of CStoreRQ i.e. to be send.java.io.IOException - Signals that an I/O exception has occurred.public void sendRequestsForCFind(ISingleCollection<CFindRQ> objRQCollection) throws java.io.IOException
objRQCollection - Collection of CStoreRQ i.e. to be send.java.io.IOException - Signals that an I/O exception has occurred.public boolean sendMessage(DicomMessage objDicomMessage) throws java.io.IOException
sendMessage in interface IMessageListenersendMessage in class SCUobjDicomMessage - The Dicom Message containing Request for ORMS.java.io.IOException - Signals that an I/O exception has occurred.public static ISingleCollection<CStoreRQ> getDefaultCStoreRQ(ISingleCollection<IDataSet> objIDataSetColl)
objIDataSetColl - Collection of DataSet.public boolean validateCFindRQ(IDataSet objIDataSet) throws InvalidDataSetException
objDicomMessage - : The Request Message for validation.InvalidDataSetException - : Exception is raised when the DataSet contents are not in proper order.public boolean validateCGETRQ(IDataSet objIDataSet) throws InvalidDataSetException
objDicomMessage - : The Request Message for validation.InvalidDataSetException - : Exception is raised when the DataSet contents are not in proper order.