public class MCproposedContext
extends java.lang.Object
Instances of this class can be used by multiple threads concurrently.
| Constructor and Description |
|---|
MCproposedContext(MCsopClass sopInfo,
MCtransferSyntax ts)
Initializes a new instance of this class for a specified SOP class and one transfer syntax,
using unspecified SCU and SCP roles and no extended negotiation information.
|
MCproposedContext(MCsopClass sopInfo,
MCtransferSyntaxList tsList)
Initializes a new instance of this class for a specified SOP class and transfer syntax list,
using unspecified SCU and SCP roles and no extended negotiation information.
|
MCproposedContext(MCsopClass sopInfo,
MCtransferSyntaxList tsList,
boolean scuRole,
boolean scpRole)
Initializes a new instance of this class for a specified SOP class, transfer syntax list and
SCU and SCP roles , without extended negotiation information.
|
MCproposedContext(MCsopClass sopInfo,
MCtransferSyntaxList tsList,
boolean scuRole,
boolean scpRole,
byte[] extendedInfo)
Initializes a new instance of this class for a specified SOP class, transfer syntax list,
SCU and SCP roles and extended negotiation information.
|
MCproposedContext(MCsopClass sopInfo,
MCtransferSyntaxList tsList,
byte[] extendedInfo)
Initializes a new instance of this class for a specified SOP class and transfer syntax list,
using unspecified SCU and SCP roles and with the specified extended negotiation information.
|
MCproposedContext(MCsopClass sopInfo,
java.lang.String tsListName)
Initializes a new instance of this class for a specified SOP class and transfer syntax list,
using unspecified SCU and SCP roles and no extended negotiation information.
|
MCproposedContext(java.lang.String serviceName,
java.lang.String tsListName)
Initializes a new instance of this class for a specified service and transfer syntax list,
using unspecified SCU and SCP roles and no extended negotiation information.
|
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes native resources associated with this context for application created contexts.
|
byte[] |
getExtendedNegotiationInfo()
Gets the extended negotiation information for this context.
|
MCsopClass |
getSOPClass()
Gets the SOP class of the proposed service
|
MCtransferSyntaxList |
getSyntaxList()
Gets the transfer syntax list proposed for this context.
|
java.lang.Boolean |
isSCPRole()
Gets the SCP role negotiation value.
|
java.lang.Boolean |
isSCURole()
Gets the SCU role negotiation value.
|
public MCproposedContext(MCsopClass sopInfo, MCtransferSyntaxList tsList)
sopInfo - The SOP class of the service.tsList - The list of acceptable transfer syntaxes or null for the default
transfer syntax list (the three non-encapsulated transfer syntaxes).MCexception - If the sopInfo parameter is null.public MCproposedContext(MCsopClass sopInfo, MCtransferSyntax ts)
sopInfo - The SOP class of the service.ts - The single transfer syntax to negotiate for the service.MCexception - If one of the parameters is invalid.public MCproposedContext(java.lang.String serviceName,
java.lang.String tsListName)
serviceName - The DICOM service name as specified in the mergecom.srv file.tsListName - The name of a configured transfer syntax list or null for the default
transfer syntax list (the three non-encapsulated transfer syntaxes).MCexception - If the serviceName parameter is null ir invalid.public MCproposedContext(MCsopClass sopInfo, java.lang.String tsListName)
sopInfo - The SOP class of the service.tsListName - The name of a configured transfer syntax list or null for the default
transfer syntax list (the three non-encapsulated transfer syntaxes).public MCproposedContext(MCsopClass sopInfo, MCtransferSyntaxList tsList, byte[] extendedInfo)
sopInfo - The SOP class of the service.tsList - The list of acceptable transfer syntaxes or null for the default
transfer syntax list (the three non-encapsulated transfer syntaxes).extendedInfo - The extended negotiation information.MCexception - If the sopInfo parameter is null.public MCproposedContext(MCsopClass sopInfo, MCtransferSyntaxList tsList, boolean scuRole, boolean scpRole)
sopInfo - The SOP class of the service.tsList - The list of acceptable transfer syntaxes or null for the default
transfer syntax list (the three non-encapsulated transfer syntaxes).scuRole - true if this application is willing to perform the SCU role for
the specified service.scpRole - true if this application is willing to perform the SCP role for
the specified service.MCexception - If the sopInfo parameter is null.public MCproposedContext(MCsopClass sopInfo, MCtransferSyntaxList tsList, boolean scuRole, boolean scpRole, byte[] extendedInfo)
sopInfo - The SOP class of the service.tsList - The list of acceptable transfer syntaxes or null for the default
transfer syntax list (the three non-encapsulated transfer syntaxes).scuRole - true if this application is willing to perform the SCU role for
the specified service.scpRole - true if this application is willing to perform the SCP role for
the specified service.extendedInfo - The extended negotiation information.MCexception - If the sopInfo parameter is null.public MCsopClass getSOPClass()
public java.lang.Boolean isSCURole()
true if the application is willing to perform the SCU role,
false if the application is unwilling to perform the SCU role or
null if the role is unspecified.public java.lang.Boolean isSCPRole()
true if the application is willing to perform the SCP role,
false if the application is unwilling to perform the SCP role or
null if the role is unspecified.public MCtransferSyntaxList getSyntaxList()
public byte[] getExtendedNegotiationInfo()
null
if no extended negotiation information is specified.public void dispose()
This method addresses memory consumption issues for special use cases when a large number of different contexts are created by the application. In a normal scenario an application creates only a limited number of contexts which are used in a few context lists. In such cases disposal of contexts is not a concern since the memory used by them does not grow over time and automatic disposal on library release is acceptable.