public class CStoreSCP extends SCP
objClientSession| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all the currently executing sessions gracefully.
|
static CStoreSCP |
createInstance()
Instantiates a new C-Store SCP.
|
static CStoreSCP |
createInstance(ClientSession objClientSession)
This method returns new object of C-Store SCP.
|
IPairedCollection |
getCustomizedAssociation()
Returns paired collection of Application Entity and the Presentation Context collection for that application entity.
|
IPairedCollection<EnumDataSink,IDataSink> |
getDataSinkList()
Retrieves the DataSink List.
|
void |
onAssociateReceive(ClientSession objClientSession)
This method notifies when Association Request, Associate Release Request or Abort is received from one of the
SCUs.
|
void |
onClose(ClientSession objClientSession)
Closes client Session.
|
void |
onConnect(ClientSession objClientSession)
This method notifies when a new client connection is requested.
|
void |
onServiceRequest(ClientSession objClientSession)
This method notifies when a service related request is received.
|
CStoreRSP |
processRequest(DicomMessage objDicomMessage)
This will give the response of C-Echo Request.
|
void |
setCustomizedAssociation(IPairedCollection<java.lang.String,ISingleCollection<RQPresContext>> objIPairedCollection)
This method is to customize Default association.
|
void |
setDataSinkList(IPairedCollection<EnumDataSink,IDataSink> objSinkCollection)
Sets the DataSink List.
|
void |
setStoragePath(java.lang.String strPath)
Sets the User Data Base path.
|
void |
start(java.lang.String strAETitle,
int port)
This method will Start the C-Store Server on the local host at the port specified.
|
void |
start(java.lang.String strAETitle,
java.lang.String strIP,
int port)
This method will Start the C-Store Server at the IP and Port specified.
|
void |
stopListening()
Stops accepting new connection's from SCU's and continue to process
already connected clients.
|
onExceptionpublic static CStoreSCP createInstance(ClientSession objClientSession)
objClientSession - object of Client session.public static CStoreSCP createInstance()
public void start(java.lang.String strAETitle,
java.lang.String strIP,
int port)
throws java.io.IOException
strAETitle - calling AE title for this service provider.strIP - IP at which C-Store Server has to be started.port - at which C-Store Server has to be started.java.io.IOException - throws IOException if IO operation fails.public void start(java.lang.String strAETitle,
int port)
throws java.io.IOException
strAETitle - calling AE title for this service provider.port - port at which C-Store Server has to be started at local host.java.io.IOException - throws IOException if IO operation fails.public void setStoragePath(java.lang.String strPath)
strPath - user path.public IPairedCollection<EnumDataSink,IDataSink> getDataSinkList()
public void setDataSinkList(IPairedCollection<EnumDataSink,IDataSink> objSinkCollection)
objSinkCollection - collection of Data Sink.public void setCustomizedAssociation(IPairedCollection<java.lang.String,ISingleCollection<RQPresContext>> objIPairedCollection)
objIPairedCollection - paired collection of Application Entity and the Presentation Context collection for that application entity.public IPairedCollection getCustomizedAssociation()
public CStoreRSP processRequest(DicomMessage objDicomMessage)
processRequest in class SCPobjDIMSERequest - - object of DIMSE request.java.io.IOException - if IO operation fails.public void onConnect(ClientSession objClientSession)
objClientSession - object of client session which will accept the connection.public void onAssociateReceive(ClientSession objClientSession)
objClientSession - object of client session.public void onServiceRequest(ClientSession objClientSession) throws java.io.IOException
objClientSession - object of Client Session.java.io.IOException - Signals that an I/O exception has occurred.public void onClose(ClientSession objClientSession)
objClientSession - Object of Client Session.public void stopListening()
public void close()