public class NGetSCP extends SCP
objClientSession| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all the currently executing sessions gracefully.
|
static NGetSCP |
createInstance()
Instantiates a new NGet SCP.
|
static NGetSCP |
createInstance(ClientSession objClientSession)
This method returns new object of NGet SCP.
|
IPairedCollection<EnumDataSource,IDataSource> |
getDataSourceList()
Retrieves the Data Source 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.
|
DIMSEResponse |
processRequest(DicomMessage objDicomMessage)
This will give the response of NGet Request.
|
void |
setDataSourceList(IPairedCollection<EnumDataSource,IDataSource> objSourceList)
Sets the Data Source List.
|
void |
start(java.lang.String strAETitle,
int port)
This method will Start the 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 Server on given IP and at the port specified.
|
void |
stopListening()
Stops accepting new connection's from SCU's and continue to process
already connected clients.
|
onExceptionpublic static NGetSCP createInstance(ClientSession objClientSession)
objClientSession - object of Client session.public static NGetSCP createInstance()
public void start(java.lang.String strAETitle,
java.lang.String strIP,
int port)
throws java.io.IOException
strIP - IP at which Server has to be started.strAETitle - value of AE Title for service provider.port - at which 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 - value of AE Title for service provider.port - port at which 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 DIMSEResponse processRequest(DicomMessage objDicomMessage)
processRequest in class SCPobjDicomMessage - object of DIMSE request.java.io.IOException - if IO operation fails.public void onAssociateReceive(ClientSession objClientSession)
objClientSession - instance of Client Session.public void onClose(ClientSession objClientSession)
objClientSession - Object of Client Session.public void onConnect(ClientSession objClientSession)
objClientSession - object of client session.public void onServiceRequest(ClientSession objClientSession)
objClientSession - object of Client Session.Object of Client Session.public void stopListening()
public void close()