public interface MCacceptor
Applications accepting DICOM associations need to provide an implementation of this interface to handle individual associations.
When an association request arrives at a specific port for a specific DICOM application, the toolkit starts a new
thread and calls the processAssociation(MCassociation)
method of the registered acceptor instance for
that port and application to process the received association request.
The MCapplication.startListening( int, String, MCacceptor)
method is used to register an acceptor instance.
Modifier and Type | Method and Description |
---|---|
void |
processAssociation(MCassociation association)
Called by the toolkit when a new association request is received.
|
void processAssociation(MCassociation association)
An implementation should accept or reject the provided association before starting to receive messages. If the association is still active when this method returns, it is aborted when the association object is garbage collected.
This method is called in an internal toolkit thread that may be reused by the toolkit after this method returns.
If an exception is thrown by this method the toolkit will log an error message.
association
- An object representing the received association request.