public class CGetSCU extends SCU
| Constructor and Description |
|---|
CGetSCU(java.net.InetSocketAddress addr)
The InetAddress and port to which user connects.
|
CGetSCU(SCUSession objSCUSession)
Parameterized constructor initializes CGet SCP with given session and registers itself to SCUSession to work as ResponseListener.
|
CGetSCU(java.lang.String strIP,
int port)
The IP and port to which user connects.
|
| Modifier and Type | Method and Description |
|---|---|
IDataSink |
getDataSink()
Retrieves the DataSink
|
java.lang.String |
getDestinationPath()
Sets the destination path to store the file.
|
void |
receiveMessage(ServiceMessageEvent objServiceMessageEvent)
It processes the received Dicom Message ,retrieved from event generated, according to it's Command Type.
|
void |
send(java.lang.String strAffectedSOPClassUID,
AssociateRQ objAssociateRQ,
ISingleCollection<IDataSet> objDataSetCollection)
Sends the available datasets to the SCP.
|
void |
send(java.lang.String strCalledAETitle,
java.lang.String strCallingAETitle,
java.lang.String strAffectedSOPClassUID,
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)
Sends the DicomMessage to SCUSession for further processing and waits untill final CGetRSP is arrived.
|
void |
sendRequests(ISingleCollection<CGetRQ> objRQCollection)
This method sends multiple CStore RQ.
|
void |
setDataSink(IDataSink objIDataSink)
Sets the Data Sink.
|
void |
setDestinationPath(java.lang.String strStorageDestPath)
Retrieves the destination path to store the file.
|
getDIMSEAssociation, getDIMSEResponse, setAssociationStatus, setDIMSEAssociation, setDIMSEResponsepublic CGetSCU(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 CGetSCU(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 CGetSCU(SCUSession objSCUSession)
objSCUSession - instance of SCU Session.public java.lang.String getDestinationPath()
public void setDestinationPath(java.lang.String strStorageDestPath)
strStorageDestPath - the strStorageDestPath to setpublic IDataSink getDataSink()
public void setDataSink(IDataSink objIDataSink)
objIDataSink - object of Data Sink.public void sendRequests(ISingleCollection<CGetRQ> 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 strCalledAETitle,
java.lang.String strCallingAETitle,
java.lang.String strAffectedSOPClassUID,
ISingleCollection<IDataSet> objDataSetCollection)
throws java.io.IOException
strcallingAETitle - calling AE title for this service provider.strCalledAETitle - called AE title for user .strAffectedSOPClassUID - String value of Affected SOP Class UID.objDataSetCollection - Collection of Data Set containing identifier on which C-Move operation has to be performed.java.io.IOException - Signals IOException of IO operation fails.public void send(java.lang.String strAffectedSOPClassUID,
AssociateRQ objAssociateRQ,
ISingleCollection<IDataSet> objDataSetCollection)
throws java.io.IOException
strAffectedSOPClassUID - String value of Affected SOP Class UID.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 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.public boolean sendMessage(DicomMessage objDicomMessage) throws java.io.IOException
sendMessage in interface IMessageListenersendMessage in class SCUobjDicomMessage - instance of DicomMessage.java.io.IOException - Signals that an I/O exception has occurred.