com.goldenhammer.dicom.dcm4che
Class DCM4CHECommand
java.lang.Object
com.goldenhammer.dicom.dcm4che.DCM4CHECommand
- All Implemented Interfaces:
- Command
- Direct Known Subclasses:
- CEcho, CStoreImage
- public abstract class DCM4CHECommand
- extends java.lang.Object
- implements Command
A super class for all dcm4che commands
Constructor Summary |
DCM4CHECommand(java.util.Properties properties)
Constructor |
Method Summary |
protected void |
close(ActiveAssociation activeAssociation)
This method closes active associations |
protected ActiveAssociation |
openActiveAssociaton(AAssociateRQ associatiateRequest)
Get an active association for the requester |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
aFactory
protected AssociationFactory aFactory
oFactory
protected DcmObjectFactory oFactory
association
protected Association association
properties
protected java.util.Properties properties
DCM4CHECommand
public DCM4CHECommand(java.util.Properties properties)
throws java.io.IOException
- Constructor
- Parameters:
properties
- the properties to use for this command
- Throws:
java.io.IOException
- thrown if there is a problem connecting to the socket
openActiveAssociaton
protected ActiveAssociation openActiveAssociaton(AAssociateRQ associatiateRequest)
throws java.io.IOException,
DCM4CHEException
- Get an active association for the requester
- Parameters:
associatiateRequest
- the assocatiate request
- Returns:
- the active association
- Throws:
java.io.IOException
- thrown if there is a problem with the association
DCM4CHEException
- thrown if there is a problem with the dcm4che connections
close
protected void close(ActiveAssociation activeAssociation)
throws java.lang.InterruptedException,
java.io.IOException
- This method closes active associations
- Parameters:
activeAssociation
- the association to close
- Throws:
java.lang.InterruptedException
- thrown if the association cannot be closed
java.io.IOException
- thrown if the association cannot be closed