org.dicom4j.network.protocoldataunit
Class AssociateRQPDU

java.lang.Object
  extended by org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
      extended by org.dicom4j.network.protocoldataunit.support.AssociateRQACPDU
          extended by org.dicom4j.network.protocoldataunit.AssociateRQPDU
All Implemented Interfaces:
ProtocolDataUnit

public class AssociateRQPDU
extends AssociateRQACPDU

ASSOCIATE-RQ PDU (see DICOM PS 3.8)

Since:
0.0.0
Author:
Laurent Lecomte

Nested Class Summary
 
Nested classes/interfaces inherited from class org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
ProtocolDataUnit.Types
 
Constructor Summary
AssociateRQPDU()
          Create a new ASSOCIATE-RQ PDU
AssociateRQPDU(String aCalledAETitle, String aCallingAETitle)
          Create a new Associate-RQ PDU
 
Method Summary
 void addPresentationContextItem(PresentationContextItemRQ aItem)
          Add a new PresentationContext Item
 String getName()
          Return the name of the Protocol Data Unit
 PresentationContextItemRQ getPresentationContextItem(byte aId)
           
 PresentationContextItemRQ getPresentationContextItem(String abstractSyntax)
          return a PresentationContextItemRQ depending of an abstractSyntax
 PresentationContextItemRQ[] getPresentationContextItemRQ()
           
 ProtocolDataUnitType getType()
           return the type of the Protocol Data Unit TODO change to ProtocolType
 void read(BinaryInputStream aStream, int aLength)
          Read the Protocol Data Unit from a stream
 void setPresentationContexts(byte aID, String aAbstractSyntax, String[] aTransfertSyntaxes)
           
 void write(BinaryOutputStream aStream)
          Write the Protocol Data Unit to a stream
 
Methods inherited from class org.dicom4j.network.protocoldataunit.support.AssociateRQACPDU
getApplicationContextItem, getCalledAETitle, getCallingAETitle, getLength, getPresentationIterator, getProtocolVersion, getUserInformationItem, setApplicationContext, setCalledAET, setCallingAET, setUserInformations, toString
 
Methods inherited from class org.dicom4j.network.protocoldataunit.support.ProtocolDataUnit
checkStream, getSopClassRegistry, setSopClassRegistry, toBytes, typetoString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssociateRQPDU

public AssociateRQPDU()
Create a new ASSOCIATE-RQ PDU


AssociateRQPDU

public AssociateRQPDU(String aCalledAETitle,
                      String aCallingAETitle)
Create a new Associate-RQ PDU

Parameters:
aCalledAETitle - the called AET
aCallingAETitle - the calling AET
Method Detail

addPresentationContextItem

public void addPresentationContextItem(PresentationContextItemRQ aItem)
Add a new PresentationContext Item

Parameters:
aItem - the item

getName

public String getName()
Description copied from class: ProtocolDataUnit
Return the name of the Protocol Data Unit

Specified by:
getName in interface ProtocolDataUnit
Overrides:
getName in class ProtocolDataUnit
Returns:
the name

getPresentationContextItem

public PresentationContextItemRQ getPresentationContextItem(byte aId)

getPresentationContextItem

public PresentationContextItemRQ getPresentationContextItem(String abstractSyntax)
return a PresentationContextItemRQ depending of an abstractSyntax

Parameters:
abstractSyntax - the abstractSyntax
Returns:
the PresentationContextItemRQ of null if not present

getPresentationContextItemRQ

public PresentationContextItemRQ[] getPresentationContextItemRQ()

getType

public ProtocolDataUnitType getType()
Description copied from class: ProtocolDataUnit

return the type of the Protocol Data Unit

TODO change to ProtocolType

Specified by:
getType in interface ProtocolDataUnit
Specified by:
getType in class ProtocolDataUnit
Returns:
the type

read

public void read(BinaryInputStream aStream,
                 int aLength)
          throws DicomException,
                 IOException
Description copied from class: ProtocolDataUnit
Read the Protocol Data Unit from a stream

Overrides:
read in class AssociateRQACPDU
Throws:
DicomException
IOException

setPresentationContexts

public void setPresentationContexts(byte aID,
                                    String aAbstractSyntax,
                                    String[] aTransfertSyntaxes)

write

public void write(BinaryOutputStream aStream)
           throws DicomException,
                  IOException
Description copied from class: ProtocolDataUnit
Write the Protocol Data Unit to a stream

Overrides:
write in class AssociateRQACPDU
Throws:
DicomException
IOException


Copyright © 2009 dicom4j. All Rights Reserved.