public abstract class AssociationStatusHandler
extends java.lang.Object
This abstract class provides a mechanism for detecting when an Association closes.
Typically a private sub-class would be declared and instantiated
in an implementation using StorageSOPClassSCPDispatcher
.
For example:
private class OurAssociationStatusHandler extends AssociationStatusHandler { public void sendAssociationReleaseIndication(Association a) throws DicomNetworkException, DicomException, IOException { if (a != null) { System.err.println("Association "+a.getAssociationNumber()+" from "+a.getCallingAETitle()+" released"); } } }
Constructor and Description |
---|
AssociationStatusHandler() |
Modifier and Type | Method and Description |
---|---|
abstract void |
sendAssociationReleaseIndication(Association a)
Do something when an Association closes.
|
public abstract void sendAssociationReleaseIndication(Association a) throws DicomNetworkException, DicomException, java.io.IOException
Do something when an Association closes.
a
- the Associationjava.io.IOException
DicomException
DicomNetworkException