public class CEchoSCU extends SCU
| Constructor and Description |
|---|
CEchoSCU(java.net.InetSocketAddress addr)
The InetAddress and port to which user connects.
|
CEchoSCU(SCUSession objSCUSession)
Instantiates a new C-Echo SCU on the SCU session provided by user.
|
CEchoSCU(java.lang.String strIP,
int port)
The IP and port to which user connects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
receiveMessage(ServiceMessageEvent objServiceMessageEvent)
It processes the received Dicom Message ,retrieved from event generated, according to it's Command Type.
|
boolean |
sendMessage(DicomMessage objDicomMessage)
This method sends C-Echo Request.
|
void |
verify(AssociateRQ objAssociateRQ,
CEchoRQ objCEchoRQ)
Sends the C-Echo request to the SCP.
|
void |
verify(CEchoRQ objCEchoRQ,
java.lang.String strcallingAETitle,
java.lang.String strCalledAETitle)
This method establish association by Default association using given AE Titles.
|
void |
verify(java.lang.String strcallingAETitle,
java.lang.String strCalledAETitle)
This method establish association by Default association.
|
getDIMSEAssociation, getDIMSEResponse, setAssociationStatus, setDIMSEAssociation, setDIMSEResponsepublic CEchoSCU(SCUSession objSCUSession)
objSCUSession - the object of SCU session on which C-Echo SCU is to be initiated.public CEchoSCU(java.lang.String strIP,
int port)
throws java.io.IOException
strIP - String value of IP to which user connects.port - Port to which user connects.java.io.IOException - Signals IO Exception if IO operation fails.public CEchoSCU(java.net.InetSocketAddress addr)
throws java.io.IOException
addr - InetAddress to which user connects.port - Port to which user connects.java.io.IOException - Signals IO Exception if IO operation fails.public void verify(java.lang.String strcallingAETitle,
java.lang.String strCalledAETitle)
throws java.io.IOException
strcallingAETitle - calling AE title for this service providerstrCalledAETitle - called AE title for verificationjava.io.IOException - Signals IOException if IO operation fails.public void verify(CEchoRQ objCEchoRQ, java.lang.String strcallingAETitle, java.lang.String strCalledAETitle) throws java.io.IOException
strcallingAETitle - calling AE title for this service providerstrCalledAETitle - called AE title for verificationobjCEchoRQ - CEcho request i.e. to be sent to SCP.java.io.IOException - Signals IOException if IO operation fails.public void verify(AssociateRQ objAssociateRQ, CEchoRQ objCEchoRQ) throws java.io.IOException
objAssociateRQ - The association request i.e. to be sent to SCP.objCEchoRQ - CEcho request i.e. to be sent to SCP.java.io.IOException - Signals IOException if IO operation fails.public boolean sendMessage(DicomMessage objDicomMessage) throws java.io.IOException
sendMessage in interface IMessageListenersendMessage in class SCUobjDicomMessage - the Dicom Message containing C-Echo request.java.io.IOException - Signals that an I/O exception has occurred.public void receiveMessage(ServiceMessageEvent objServiceMessageEvent) throws java.io.IOException
receiveMessage in interface IMessageListenerreceiveMessage in class SCUobjServiceMessageEvent - instance of ServiceMessageEvent..java.io.IOException - Signals that an I/O exception has occurred.