public class SRS_SCU extends SCU
| Constructor and Description |
|---|
SRS_SCU(java.net.InetSocketAddress addr)
The InetAddress and port to which user connects.
|
SRS_SCU(SCUSession objSCUSession)
Instantiates a new SRS_SCU on the SCU session provided by user.
|
SRS_SCU(java.lang.String strIP,
int port)
The IP and port to which user connects.
|
| Modifier and Type | Method and Description |
|---|---|
static CStoreRQ |
getDefaultRQ(IDataSet objIDataSet)
This method makes CStore RQ's according to the given DataSet Collection.
|
void |
send(AssociateRQ objAssociateRQ,
ISingleCollection<IDataSet> objDataSetCollection)
Sends the available data sets to the SCP.
|
void |
send(java.lang.String strCallingAETitle,
java.lang.String strCalledAETitle,
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 SRS.
|
void |
sendRequests(ISingleCollection<CStoreRQ> objRQCollection)
This method sends multiple Application Event Logging RQ.
|
boolean |
validateCStoreRQ(IDataSet objIDataSet)
Validates request for N_ACTION for its Compulsory and
Conditional attributes specified by DICOM.
|
getDIMSEAssociation, getDIMSEResponse, receiveMessage, setAssociationStatus, setDIMSEAssociation, setDIMSEResponsepublic SRS_SCU(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 SRS_SCU(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 SRS_SCU(SCUSession objSCUSession)
objSCUSession - the object of SCU session on which SRS_SCU is to be initiated.public void send(java.lang.String strCallingAETitle,
java.lang.String strCalledAETitle,
ISingleCollection<IDataSet> objDataSetCollection)
throws java.io.IOException
objAssociateRQ - The association request i.e. to be sent to SCP.strCallingAETitle - Calling AE Title.strCalledAETitle - Called AE Title.objDataSetCollection - Object of IDataSet.java.io.IOException - Signals IOException if IO operation fails.public void send(AssociateRQ objAssociateRQ, ISingleCollection<IDataSet> objDataSetCollection) throws java.io.IOException
objAssociateRQ - The association request i.e. to be sent to SCP.objEnumCommandField - Enum Represents Element Command Field.strSOPInstanceUID - SOP Instance UID.objIDataSet - Object of IDataSetjava.io.IOException - Signals IOException if IO operation fails.public static CStoreRQ getDefaultRQ(IDataSet objIDataSet)
objIDataSet - object of DataSet to be set in C-Store RQ.public void sendRequests(ISingleCollection<CStoreRQ> objRQCollection) throws java.io.IOException
objRQCollection - instance of RQ collection.java.io.IOException - Signals if an IOException occurs.public boolean sendMessage(DicomMessage objDicomMessage) throws java.io.IOException
sendMessage in interface IMessageListenersendMessage in class SCUobjDicomMessage - The Dicom Message containing Request for .java.io.IOException - Signals that an I/O exception has occurred.public boolean validateCStoreRQ(IDataSet objIDataSet) throws InvalidDataSetException
objDicomMessage - : The Request Message for validation.InvalidDataSetException - : Exception is raised when the DataSet contents are not in proper order.