public class CGetSCP extends SCP implements IAsyncReceiver
objClientSession| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all the currently executing sessions gracefully.
|
static CGetSCP |
createInstance()
This method returns new object of C-Get SCP.
|
static CGetSCP |
createInstance(ClientSession objClientSession)
Static method to create instance of CGet SCP.
|
IDataSource |
getDataSource()
Retrieves instance of IDataSource
|
int |
getNoOfRemainingResponses()
Returns count of number of remaining responses.
|
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 |
onResponseReceive(DicomMessage response)
This method is call backed when Response is received.
|
void |
onServiceRequest(ClientSession objClientSession)
This method notifies when a service related request is received.
|
CGetRSP |
processRequest(DicomMessage objDicomMessage)
It implements processing of a CGet Request.
|
void |
setDataSource(IDataSource objIDataSource)
Sets instance of DataSource which works as a DataSource to retrieve.
|
void |
start(java.lang.String strAETitle,
int port)
This method will Start the C-Get 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-Get 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 CGetSCP createInstance(ClientSession objClientSession)
objClientSession - instance of Client session.public static CGetSCP 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-Get Server has to be started.port - at which C-Get 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 - at which C-Get Server has to be started at local host.java.io.IOException - throws IOException if IO operation fails.public IDataSource getDataSource()
public void setDataSource(IDataSource objIDataSource)
objIDataSource - instance of IDataSourcepublic CGetRSP processRequest(DicomMessage objDicomMessage)
processRequest in class SCPobjDicomMessage - instance of DicomMessage..public void onConnect(ClientSession objClientSession)
onConnect in interface IProcessHandlerobjClientSession - object of Client Session.public void onAssociateReceive(ClientSession objClientSession)
onAssociateReceive in interface IProcessHandlerobjClientSession - object of client session.cdac.medinfo.sdk.dcm30_04.services.scp.commons.ProcessHandler#processAssociation(cdac.medinfo.sdk.dcm30_04.services.scp.commons.ClientSession, cdac.medinfo.sdk.dcm30_04.services.dicomnetcommons.EnumPDUType)public void onServiceRequest(ClientSession objClientSession) throws java.io.IOException
onServiceRequest in interface IProcessHandlerobjClientSession - object of client session.java.io.IOException - Signals that an I/O exception has occurred.public int getNoOfRemainingResponses()
IAsyncReceivergetNoOfRemainingResponses in interface IAsyncReceiverpublic void onResponseReceive(DicomMessage response) throws java.io.IOException
onResponseReceive in interface IAsyncReceiverresponse - Response received.java.io.IOException - Signals that an I/O exception has occurred.public void onClose(ClientSession objClientSession)
onClose in interface IProcessHandlerobjClientSession - Object of Client Session.public void stopListening()
public void close()