public abstract class TransferSyntaxSelectionPolicy
extends java.lang.Object
Concrete sub-classes of this abstract class accept or reject Presentation Contexts from a list based on their Transfer Syntax.
Constructor and Description |
---|
TransferSyntaxSelectionPolicy() |
Modifier and Type | Method and Description |
---|---|
java.util.LinkedList |
applyExplicitTransferSyntaxPreferencePolicy(java.util.LinkedList presentationContexts,
int associationNumber)
Reject Implicit VR Presentation Contexts when multiple Presentation Contexts are offered for the same Abstract Syntax, if possible.
|
abstract java.util.LinkedList |
applyTransferSyntaxSelectionPolicy(java.util.LinkedList presentationContexts,
int associationNumber)
Accept or reject Presentation Contexts, based on TransferSyntax.
|
public java.util.LinkedList applyExplicitTransferSyntaxPreferencePolicy(java.util.LinkedList presentationContexts, int associationNumber)
applyTransferSyntaxSelectionPolicy()
.presentationContexts
- a java.util.LinkedList of PresentationContext
objects, each of which contains a single (accepted) Transfer SyntaxassociationNumber
- used for debugging messagesPresentationContext
objects, as supplied but with any Presentation Context with an Implicit VR Transfer Syntax for which there is another Presentation Context with an Explicit VR Transfer Syntax rejected with the result/reason field set to "no reason (provider rejection)"public abstract java.util.LinkedList applyTransferSyntaxSelectionPolicy(java.util.LinkedList presentationContexts, int associationNumber)
applyExplicitTransferSyntaxPreferencePolicy()
.
Does not change the Abstract Syntax.presentationContexts
- a java.util.LinkedList of PresentationContext
objects, each of which contains an Abstract Syntax (SOP Class UID) with one or more Transfer SyntaxesassociationNumber
- used for debugging messagesPresentationContext
objects, as supplied but with the Transfer Syntax list culled to the one preferred Transfer Syntax (or empty if none acceptable) and the result/reason field left alone if one of the Transfer Syntaxes was acceptable, or set to "transfer syntaxes not supported (provider rejection)"