public class CStoreSCU extends SCU
| Constructor and Description |
|---|
CStoreSCU(java.net.InetSocketAddress addr)
The InetAddress and port to which user connects.
|
CStoreSCU(SCUSession objSCUSession)
Instantiates a new C-store SCU on the SCU session provided by user.
|
CStoreSCU(java.lang.String strIP,
int port)
The IP and port to which user connects.
|
| Modifier and Type | Method and Description |
|---|---|
static ISingleCollection<CStoreRQ> |
getDefaultRQ(ISingleCollection<IDataSet> objIDataSetColl)
This method makes CStore RQ's according to the given DataSet Collection.
|
void |
receiveMessage(ServiceMessageEvent objServiceMessageEvent)
It processes the received Dicom Message ,retrieved from event generated, according to it's Command Type.
|
void |
send(AssociateRQ objAssociateRQ,
ISingleCollection<IDataSet> objDataSetCollection)
Sends the available datasets to the SCP.
|
void |
send(ISingleCollection<IDataSet> objDataSetCollection,
java.lang.String strCalledAETitle,
java.lang.String strCallingAETitle)
This method creates association request according to the DataSet collection provided by the user and the Default association.
|
void |
send(java.lang.String strFilePath,
java.lang.String strCalledAETitle,
java.lang.String strCallingAETitle)
Parses the file and sends the Dataset.
|
boolean |
sendMessage(DicomMessage objDicomMessage)
This method sends the C-Store Request.
|
void |
sendRequests(ISingleCollection<CStoreRQ> objRQCollection)
This method sends multiple CStore RQ.
|
getDIMSEAssociation, getDIMSEResponse, setAssociationStatus, setDIMSEAssociation, setDIMSEResponsepublic CStoreSCU(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 CStoreSCU(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 CStoreSCU(SCUSession objSCUSession)
objSCUSession - the object of SCU session on which C-store SCU is to be initiated.public void send(ISingleCollection<IDataSet> objDataSetCollection, java.lang.String strCalledAETitle, java.lang.String strCallingAETitle) throws java.io.IOException
objDataSetCollection - Collection of Data Set on which C-Store operation has to be performed.java.io.IOException - Signals IOException of 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.objDataSetCollection - Collection of Data Set on which C-Store operation has to be performed.java.io.IOException - Signals IOException if IO operation fails.public boolean sendMessage(DicomMessage objDicomMessage) throws java.io.IOException
sendMessage in interface IMessageListenersendMessage in class SCUobjDicomMessage - The Dicom Message containing C-Store request.java.io.IOException - Signals that an I/O exception has occurred.public static ISingleCollection<CStoreRQ> getDefaultRQ(ISingleCollection<IDataSet> objIDataSetColl)
objIDataSetColl - Collection of DataSet.public void sendRequests(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 send(java.lang.String strFilePath,
java.lang.String strCalledAETitle,
java.lang.String strCallingAETitle)
throws java.io.IOException
strFilePath - file path.strcallingAETitle - calling AE title for this service provider.strCalledAETitle - called AE title for user.java.io.IOExceptionpublic void receiveMessage(ServiceMessageEvent objServiceMessageEvent) throws java.io.IOException
receiveMessage in interface IMessageListenerreceiveMessage in class SCUobjServiceMessageEvent - instance of ServiceMessageEvent.java.io.IOException - Signals that an I/O exception has occurred.