public class CFindSCP extends SCP
objClientSession| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all the currently executing sessions gracefully.
|
static CFindSCP |
createInstance()
Instantiates a new C-find SCP.
|
static CFindSCP |
createInstance(ClientSession objClientSession)
This method returns the new object of CFind SCP if no CFind SCP is instantiated by that client session.
|
IPairedCollection<EnumDataSource,IDataSource> |
getDataSourceList()
Retrieves the Data Source List.
|
void |
onAssociateReceive(ClientSession objClientSession)
Process Association.
|
void |
onClose(ClientSession objClientSession)
Closes client Session.
|
void |
onConnect(ClientSession objClientSession)
Accept connection.
|
void |
onServiceRequest(ClientSession objClientSession)
This method Process Service.
|
CFindRSP |
processRequest(DicomMessage objDicomMessage)
This will give the response of C-Find Request.
|
void |
setDataSourceList(IPairedCollection<EnumDataSource,IDataSource> objSourceList)
Sets the Data Source List.
|
void |
start(java.lang.String strCallingAETitle,
int port)
This method will Start the C-Find Server on the local host at the port specified.
|
void |
start(java.lang.String strCallingAETitle,
java.lang.String strIP,
int port)
This method will Start the C-Find 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 CFindSCP createInstance(ClientSession objClientSession)
objClientSession - object of Client session.public static CFindSCP createInstance()
public void start(java.lang.String strCallingAETitle,
java.lang.String strIP,
int port)
throws java.io.IOException
strAETitle - calling AE title for this service provider.strIP - IP at which C-Find Server has to be started.port - at which C-Find Server has to be started.java.io.IOException - throws IOException if IO operation fails.public void start(java.lang.String strCallingAETitle,
int port)
throws java.io.IOException
strAETitle - calling AE title for this service provider..port - port at which C-Find Server has to be started at local host.java.io.IOException - throws IOException if IO operation fails.public IPairedCollection<EnumDataSource,IDataSource> getDataSourceList()
public void setDataSourceList(IPairedCollection<EnumDataSource,IDataSource> objSourceList)
objSourceList - collection of Data Source.public CFindRSP 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.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()