public class CMoveSCP extends SCP implements IAsyncReceiver
objClientSession| Modifier and Type | Method and Description |
|---|---|
void |
addAETitleInfo(java.lang.String strAETitle,
java.lang.String strIP,
int iPort)
This function will add the AE Title info for third party.
|
void |
addAETitleInfo(java.lang.String strAETitle,
java.lang.String strIP,
int iPort,
java.lang.Object objTlsClientConfig)
This function will add the AE Title info for third party.
|
void |
close()
Closes all the currently executing sessions gracefully.
|
static CMoveSCP |
createInstance()
This method returns new object of C-Move SCP.
|
static CMoveSCP |
createInstance(ClientSession objClientSession)
This method returns new object of C-Move SCP.
|
IDataSource |
getDataSource()
retrieve the data source from which data set has to be searched based upon the Attributes supplied in C-Move request.
|
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.
|
CMoveRSP |
processRequest(DicomMessage objDicomMessage)
This function process the C-Move Request.
|
void |
setDataSource(IDataSource objIDataSource)
Sets the data source from which data set has to be searched based upon the Attributes supplied in C-Move request.
|
void |
start(java.lang.String strAETitle,
int port)
This method will Start the C-Move 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-Move 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 void addAETitleInfo(java.lang.String strAETitle,
java.lang.String strIP,
int iPort)
strAETitle - Name of AE Title.strIP - IP where Server is running.iPort - Port on which server is running.public void addAETitleInfo(java.lang.String strAETitle,
java.lang.String strIP,
int iPort,
java.lang.Object objTlsClientConfig)
strAETitle - Name of AE Title.strIP - IP where Server is running.iPort - Port on which server is running.objTlsServerConfig - Object of TLSServerConfigpublic static CMoveSCP createInstance(ClientSession objClientSession)
objClientSession - object of Client session.public static CMoveSCP 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-Move Server has to be started.port - at which C-Move 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-Move 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 - - the data source from which data set has to be searched based upon the Attributes supplied in C-Move request.public CMoveRSP processRequest(DicomMessage objDicomMessage)
processRequest in class SCPobjDicomMessage - Dicom Message which is to be processed.java.lang.Exception - .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.com.cdac.dcmlibs.services.scp.commons.ProcessHandler#processAssociation(com.cdac.dcmlibs.services.scp.commons.ClientSession, com.cdac.dcmlibs.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 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 int getNoOfRemainingResponses()
IAsyncReceivergetNoOfRemainingResponses in interface IAsyncReceiverpublic void onClose(ClientSession objClientSession)
onClose in interface IProcessHandlerobjClientSession - Object of Client Session.public void stopListening()
public void close()