org.dicom4j.network.association.associate
Class AssociateSession

java.lang.Object
  extended by org.dicom4j.network.association.associate.AssociateSession

public class AssociateSession
extends Object

An Associate Session (ie: parameters of an Association opened between 2 dicom nodes)

Since:
0.0.0
Author:
Laurent Lecomte

Constructor Summary
AssociateSession(org.apache.mina.common.IoSession aIoSession, AssociateRequest aRequest, AssociateResponse aAssociateResponse, boolean aIsSCP)
           
 
Method Summary
 String getCalledAET()
          Return the called Application Entity Title
 String getCallingAET()
          Return the calling Application Entity Title
 long getMaximumLength()
           
 int getMaximumNumberOperationsInvoked()
           
 SocketAddress getSocketAddress()
           
 byte getSuitablePresentationContextID(SOPClass aSOPClass)
           
 byte getSuitablePresentationContextID(String abstractSyntaxUID)
          return a Accepted PresentationContextID depending of an AbstractSyntax
 TransferSyntax getTransferSyntax(byte aPresentationID)
           
 boolean isAccepted(byte aPresentationID)
           
 boolean isAccepted(String abstractSyntaxUID)
          return true is the remote peer accept the supplied AbstractSyntaxUID
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssociateSession

public AssociateSession(org.apache.mina.common.IoSession aIoSession,
                        AssociateRequest aRequest,
                        AssociateResponse aAssociateResponse,
                        boolean aIsSCP)
Method Detail

getCalledAET

public String getCalledAET()
Return the called Application Entity Title

Returns:
The called AET

getCallingAET

public String getCallingAET()
Return the calling Application Entity Title

Returns:
The calling AET

getMaximumLength

public long getMaximumLength()

getMaximumNumberOperationsInvoked

public int getMaximumNumberOperationsInvoked()

getSocketAddress

public SocketAddress getSocketAddress()

getSuitablePresentationContextID

public byte getSuitablePresentationContextID(SOPClass aSOPClass)
Parameters:
aSOPClass -
Returns:
Since:
0.0.4

getSuitablePresentationContextID

public byte getSuitablePresentationContextID(String abstractSyntaxUID)
return a Accepted PresentationContextID depending of an AbstractSyntax

Parameters:
abstractSyntaxUID - the AbstractSyntax
Returns:
the PresentationContextID (-1 if no accepted PresentationContext)

getTransferSyntax

public TransferSyntax getTransferSyntax(byte aPresentationID)
                                 throws DicomException
Throws:
DicomException

isAccepted

public boolean isAccepted(byte aPresentationID)

isAccepted

public boolean isAccepted(String abstractSyntaxUID)
return true is the remote peer accept the supplied AbstractSyntaxUID

Parameters:
abstractSyntaxUID - the AbstractSyntaxUID
Returns:
true if accepted

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 dicom4j. All Rights Reserved.