public class DefaultAssociation
extends java.lang.Object
| Constructor and Description |
|---|
DefaultAssociation(java.lang.String strCallingAETitle)
Constructor to initialize object using given calling AE Title.
|
DefaultAssociation(java.lang.String calledAETitle,
java.lang.String callingAETitle,
short ProcVersion,
java.lang.String strAppContextName,
ISingleCollection<RQPresContext> objRQPresContextCollection,
RQUserInfo objRQUserInfo)
Constructor to initialize object using given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDefTransferSyntax(java.lang.String strTS)
Adds the Transfer Syntax value in List
|
void |
addPresContext(RQPresContext objRQPresContext)
Adds the entry for RQPresContext
|
boolean |
changeSupportedTS(EnumSOPClassUIDs enumSOPClassUIDs,
ISingleCollection<java.lang.String> objTSList)
Replaces the transfer syntax list for a RQPresContext which contains provided SOPClassUID as AbstractSyntax.
|
java.lang.String |
getAppContextName()
Retrieves Application context name .
|
AssociateRQ |
getAssociationRQ(java.lang.String strRequestedAETitle)
Retrieves the Association RQ.
|
AssociateRQ |
getAssociationRQ(java.lang.String strRequestedAETitle,
IPairedCollection<EnumSOPClassUIDs,ISingleCollection<java.lang.String>> objPresContextList)
Retrieves the Association RQ.
|
java.lang.String |
getCalledAETitle()
Retrieves Destination DICOM Application Name .
|
java.lang.String |
getCallingAETitle()
Retrieves Source DICOM Application Name .
|
ISingleCollection<java.lang.String> |
getDefTransferSyntaxList()
Retrieves list of supported transfer syntax for Abstract Syntax.
|
short |
getProtocolVersion()
Gets the protocol version.
|
RQPresContext |
getRQPresContext(EnumSOPClassUIDs enumSOPClassUIDs)
Retrieves the RQPresContext which contains provided SOPClassUID as AbstractSyntax.
|
ISingleCollection<RQPresContext> |
getRQPresContextCollection()
This method gets the Presentation Context collection.
|
RQUserInfo |
getRQUserInfo()
This method gets the User Info.
|
boolean |
isAssociationLoaded()
Returns the status of DefaultAssociation whether it is loaded or not.
|
void |
loadAssociation(EnumServiceType[] enumServiceTypes)
Populates the DefaultAsasociation with default values if default fields have not been initialized.
|
void |
loadAssociation(EnumSOPClassUIDs[] arrenumSOPClassUID)
Populates the DefaultAsasociation with default values if default fields have not been initialized.
|
void |
loadAssociation(ISingleCollection<RQPresContext> objRQPresContextList)
Populates the DefaultAsasociation with default values if default fields have not been initialized.
|
void |
setAppContextName(java.lang.String strAppContextName)
Sets Application context name .
|
void |
setCalledAETitle(java.lang.String strCalledAETitle)
Sets Destination DICOM Application Name .
|
void |
setCallingAETitle(java.lang.String strCallingAETitle)
Sets Source DICOM Application Name .
|
void |
setDefTransferSyntaxList(ISingleCollection<java.lang.String> objDefTransferSyntaxList)
Sets list of supported transfer syntax for Abstract Syntax.
|
void |
setProtocolVersion(short protocolVersion)
Sets the protocol version.
|
void |
setRQPresContext(ISingleCollection<RQPresContext> objRQPresContext)
Sets the RQ presentation context collection.
|
void |
setUserInfoItem(RQUserInfo objRQUserInfo)
Sets the user info item.
|
boolean |
validate()
Validates the Default Association for mandatory attributes.
|
public DefaultAssociation(java.lang.String calledAETitle,
java.lang.String callingAETitle,
short ProcVersion,
java.lang.String strAppContextName,
ISingleCollection<RQPresContext> objRQPresContextCollection,
RQUserInfo objRQUserInfo)
calledAETitle - String value of Destination DICOM Application NamecallingAETitle - String value of source DICOM Application NameProcVersion - short value of Dicom Protocol version.strAppContextName - String value of Application context name.objRQPresContextCollection - collection of Presentation ContextobjRQUserInfo - object of User Info.public DefaultAssociation(java.lang.String strCallingAETitle)
strAETitle - value of calling AE Titlepublic ISingleCollection<java.lang.String> getDefTransferSyntaxList()
public void setDefTransferSyntaxList(ISingleCollection<java.lang.String> objDefTransferSyntaxList)
objDefTransferSyntaxList - collection of supported transfer syntaxpublic void addDefTransferSyntax(java.lang.String strTS)
strTS - value of Transfer Syntaxpublic boolean isAssociationLoaded()
public boolean validate()
throws InvalidAssociationPrimitiveException
InvalidAssociationPrimitiveException - if any mandatory attribute is missing or invalid.public void loadAssociation(ISingleCollection<RQPresContext> objRQPresContextList) throws AssociationLoadFailedException
objRQPresContextList - collection of RQPresContext.AssociationLoadFailedExceptionpublic void loadAssociation(EnumSOPClassUIDs[] arrenumSOPClassUID) throws AssociationLoadFailedException
arrenumSOPClassUID - array of SOP Class UIDAssociationLoadFailedExceptionpublic void loadAssociation(EnumServiceType[] enumServiceTypes) throws AssociationLoadFailedException
enumServiceTypes - array of services typeAssociationLoadFailedExceptionpublic boolean changeSupportedTS(EnumSOPClassUIDs enumSOPClassUIDs, ISingleCollection<java.lang.String> objTSList)
enumSOPClassUIDs - enum value for abstract syntaxobjTSList - list of transfer syntaxpublic RQPresContext getRQPresContext(EnumSOPClassUIDs enumSOPClassUIDs)
enumSOPClassUIDs - enum value for abstract syntaxpublic void addPresContext(RQPresContext objRQPresContext)
objRQPresContext - instance of RQPresContextpublic java.lang.String getCalledAETitle()
public void setCalledAETitle(java.lang.String strCalledAETitle)
strCalledAETitle - the Destination DICOM Application Name .public java.lang.String getCallingAETitle()
public void setCallingAETitle(java.lang.String strCallingAETitle)
strCallingAETitle - Source DICOM Application Name .public java.lang.String getAppContextName()
public void setAppContextName(java.lang.String strAppContextName)
strAppContextName - String value of Application context name .public ISingleCollection<RQPresContext> getRQPresContextCollection()
public void setRQPresContext(ISingleCollection<RQPresContext> objRQPresContext)
objRQPresContext - Presentation Context collectionpublic RQUserInfo getRQUserInfo()
public void setUserInfoItem(RQUserInfo objRQUserInfo)
objRQUserInfo - the user info item.public short getProtocolVersion()
public void setProtocolVersion(short protocolVersion)
protocolVersion - short value of protocol version.public AssociateRQ getAssociationRQ(java.lang.String strRequestedAETitle) throws AssociationLoadFailedException
strRequestedAETitle - AE title of service providerAssociationLoadFailedException - if DefaultAssociation is invalid or PresContextList size exceeds then 66.public AssociateRQ getAssociationRQ(java.lang.String strRequestedAETitle, IPairedCollection<EnumSOPClassUIDs,ISingleCollection<java.lang.String>> objPresContextList) throws AssociationLoadFailedException
strRequestedAETitle - AE title of service providerobjPresContextList - collection of Abstact syntax and corresponding transfer syntax list.AssociationLoadFailedException