public class CEchoSCP extends SCP
objClientSession| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes all the currently executing sessions gracefully.
|
static CEchoSCP |
createInstance()
Creates instance of C-Echo SCP.
|
static CEchoSCP |
createInstance(ClientSession objClientSession)
Creates instance of C-Echo SCP.
|
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.
|
CEchoRSP |
processRequest(DicomMessage objDicomMessage)
This will give the response of C-Echo Request.
|
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 CEchoSCP createInstance(ClientSession objClientSession)
objClientSession - object of Client Session.public static CEchoSCP 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 - ort 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 CEchoRSP processRequest(DicomMessage objDicomMessage)
processRequest in class SCPobjDIMSERequest - - object of DIMSE request.java.io.IOException - if IO operation fails.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 onConnect(ClientSession objClientSession)
objClientSession - object of client session which will accept the connection.public void onClose(ClientSession objClientSession)
objClientSession - Object of Client Session.public void stopListening()
public void close()