org.dicom4j.network.association
Interface AssociationAcceptor

All Superinterfaces:
AssociationService
All Known Implementing Classes:
AssociationAcceptorImpl

public interface AssociationAcceptor
extends AssociationService

To accept Associations from remote peers.

before start an acceptor with the bind methods, you need to configure it and set an AssociateRequestHandler and an AssociationListener

the AssociateRequestHandler is used to handle associate request from remote peer, construct an appropriate response (depending of supported sop classes).

the AssociationListener is used to handle all events coming from an open association.

Since:
0.0.1
Author:
Laurent Lecomte

Method Summary
 void bind(int port)
          Accept Associations from remote peers
 AssociationAcceptorConfiguration getConfiguration()
          return the current configuration
 void setConfiguration(AssociationAcceptorConfiguration aConfiguration)
          set the configuration to use
 void unBind(int aPort)
           
 
Methods inherited from interface org.dicom4j.network.association.support.AssociationService
abortAssociations, count, getAssociations
 

Method Detail

bind

void bind(int port)
          throws Exception
Accept Associations from remote peers

Parameters:
port - the port to listen on
Throws:
Exception - if errors occurs

getConfiguration

AssociationAcceptorConfiguration getConfiguration()
return the current configuration

Returns:
the current configuration

setConfiguration

void setConfiguration(AssociationAcceptorConfiguration aConfiguration)
set the configuration to use

Parameters:
aConfiguration -

unBind

void unBind(int aPort)
            throws Exception
Throws:
Exception


Copyright © 2009 dicom4j. All Rights Reserved.