org.dicom4j.network.dimse
Class DimseServiceBroker

java.lang.Object
  extended by org.dicom4j.network.association.listeners.defaults.DefaultAssociationListener
      extended by org.dicom4j.network.dimse.DimseServiceBroker
All Implemented Interfaces:
AssociationListener

public class DimseServiceBroker
extends DefaultAssociationListener

implement an AssociationListener which request a DimseService from a DimseServicesManager

Since:
0.0.0
Author:
Laurent Lecomte

Constructor Summary
DimseServiceBroker()
           
DimseServiceBroker(DimseServicesManager aServiceManager)
           
 
Method Summary
 void associateRelease(Association aAssociation, AssociateRelease aRelease)
          Invoked when an associate release is received
 void associationAborted(Association aAssociation, AssociateAbort aAbort)
          Invoked when the association is aborted
 void associationReleased(Association aAssociation)
          Invoked when the association was released
 void exceptionCaught(Association aAssociation, Throwable cause)
          Invoked when an exception occurs
 void messageReceived(Association aAssociation, byte aPresentationContextID, AbstractDimseMessage aMessage)
          Send a DimseMessage to the appropriate DimseService
 void setDimseServicesManager(DimseServicesManager aDimseServicesRegistry)
           
 
Methods inherited from class org.dicom4j.network.association.listeners.defaults.DefaultAssociationListener
associationCreated, associationOpened, associationRejected, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DimseServiceBroker

public DimseServiceBroker()

DimseServiceBroker

public DimseServiceBroker(DimseServicesManager aServiceManager)
Method Detail

associateRelease

public void associateRelease(Association aAssociation,
                             AssociateRelease aRelease)
                      throws Exception
Description copied from interface: AssociationListener
Invoked when an associate release is received

Specified by:
associateRelease in interface AssociationListener
Overrides:
associateRelease in class DefaultAssociationListener
Throws:
Exception

associationAborted

public void associationAborted(Association aAssociation,
                               AssociateAbort aAbort)
                        throws Exception
Description copied from interface: AssociationListener
Invoked when the association is aborted

Specified by:
associationAborted in interface AssociationListener
Overrides:
associationAborted in class DefaultAssociationListener
Parameters:
aAssociation - the association
Throws:
Exception

associationReleased

public void associationReleased(Association aAssociation)
                         throws Exception
Description copied from interface: AssociationListener
Invoked when the association was released

Specified by:
associationReleased in interface AssociationListener
Overrides:
associationReleased in class DefaultAssociationListener
Parameters:
aAssociation - the association
Throws:
Exception

exceptionCaught

public void exceptionCaught(Association aAssociation,
                            Throwable cause)
Description copied from interface: AssociationListener
Invoked when an exception occurs

Specified by:
exceptionCaught in interface AssociationListener
Overrides:
exceptionCaught in class DefaultAssociationListener
Parameters:
aAssociation - the association
cause - the cause of the error

messageReceived

public void messageReceived(Association aAssociation,
                            byte aPresentationContextID,
                            AbstractDimseMessage aMessage)
                     throws Exception
Send a DimseMessage to the appropriate DimseService

Specified by:
messageReceived in interface AssociationListener
Overrides:
messageReceived in class DefaultAssociationListener
Parameters:
aAssociation - the association
aMessage - the message
Throws:
Exception

setDimseServicesManager

public void setDimseServicesManager(DimseServicesManager aDimseServicesRegistry)


Copyright © 2009 dicom4j. All Rights Reserved.