public class Acknowledge extends Response implements ULServiceMessage
When creating new Acknowledge object for sending, the implementation class UID and implementation version name are initialized from the constants defined in the com.archimed.dicom.Jdt class.
Modifier and Type | Field and Description |
---|---|
static int |
ABSTRACT_SYNTAX_NOT_SUPPORTED |
static int |
ACCEPTANCE |
static int |
DEFAULT |
protected JdtLogger |
log |
static int |
NO_REASON |
static int |
NO_SUPPORT_SCP_ROLE |
static int |
NO_SUPPORT_SCU_ROLE |
static int |
SUPPORT_SCP_ROLE |
static int |
SUPPORT_SCU_ROLE |
static int |
TRANSFER_SYNTAXES_NOT_SUPPORTED |
static int |
USER_REJECTION |
ABORT, ASS_ACKNOWLEDGE, ASS_REJECT, ASS_REQUEST, DIMSE, REL_REQUEST, REL_RESPONSE
Constructor and Description |
---|
Acknowledge() |
Modifier and Type | Method and Description |
---|---|
void |
addPresentationContext(byte id,
int result,
int tsid)
Deprecated.
This method is replaced by addPresentationContext(int id,int result,int tsid).
|
void |
addPresentationContext(int id,
int result,
int tsid)
add a new presentation context to the Acknowledge object.
|
PresentationContext |
findPresentationContext(int pcid)
returns the presentation context based on the presentation context ID
|
java.lang.String |
getCalledTitle()
returns the called application entity title
|
java.lang.String |
getCallingTitle()
returns the calling application entity title
|
ExtendedNegotiation[] |
getExtendedNegotiations()
returns the array of ExtendedNegotation objects.
|
int |
getID(int index)
returns the presentation context id of the presentation context with the
specified index.
|
java.lang.String |
getImplementationClassUID()
returns the implementation class uid
|
java.lang.String |
getImplementationVersionName()
returns the implementation version name
|
int |
getMaxOperationsInvoked()
returns the maximum number op outstanding operations that the requester is
allowed to invoke.
|
int |
getMaxOperationsPerformed()
returns the maximum number of outstanding operations the requester is allowed
to perform assynchronously.
|
int |
getMaxPduSize()
returns the maximum pdu size specified in the maximum PDU length subitem
of this acknowledge.
|
int |
getMessageType()
returns the type of ULServiceMessage
|
java.lang.String |
getMessageTypeName()
returns a name for the message type
|
PresentationContext |
getPresentationContext(int index)
gets the presentation context at index i
|
byte |
getPresentationContextID(int index)
Deprecated.
This method is replaced by getID(int index).
|
int |
getPresentationContexts()
returns the number of Presentation contexts
in the Acknowledge
|
int |
getResult(int index)
returns the result of the presentation context with the specified index.
|
int |
getScpRole(int asid)
returns if the receiver supports the role of SCP for the specified
abstract syntax.
|
int |
getScuRole(int asid)
returns if the receiver supports the role of SCU for the specified abstract syntax.
|
UIDEntry |
getTransferSyntax(int index)
returns the accepted transfer syntax for the presentation context
with the specified index.
|
int |
getType()
returns the type of this pdu
|
UserIdentityNegotiationResponse |
getUserIdentityNegotiationResponse()
Returns the user identity negotiation data.
|
void |
setCalledTitle(java.lang.String calledtitle)
sets the called application entity title
|
void |
setCallingTitle(java.lang.String callingtitle)
sets the calling application entity title
|
void |
setExtendedNegotiations(ExtendedNegotiation[] extendedNegotiations)
sets the array of extended negotiations.
|
void |
setImplementationClassUID(java.lang.String s)
sets the implementation class UID in this Acknowledge.
|
void |
setImplementationVersionName(java.lang.String s)
sets the implementation version name in this Acknowledge.
|
void |
setMaxOperationsInvoked(int n)
sets the maximum number of outstanding operations that the requester is
allowed to invoke assychronously.
|
void |
setMaxOperationsPerformed(int n)
sets the maximum of outstanding operations the requester is allowed to perform
assynchronously.
|
void |
setMaxPduSize(int maxpdusize)
sets the maximum pdu size specified in the maximum PDU length subitem
of this acknowledge.
|
void |
setScuScpRoleSelection(int asid,
int scurole,
int scprole)
sets the SCU role and SCP role for the specified abstract syntax.
|
void |
setUserIdentityNegotiationResponse(UserIdentityNegotiationResponse userIdentityNegotiationResponse)
Updates the user identity negotiation data.
|
java.lang.String |
toString()
returns a String representation of this Acknowledge
|
public static final int NO_SUPPORT_SCU_ROLE
public static final int SUPPORT_SCU_ROLE
public static final int NO_SUPPORT_SCP_ROLE
public static final int SUPPORT_SCP_ROLE
public static final int DEFAULT
public static final int ACCEPTANCE
public static final int USER_REJECTION
public static final int NO_REASON
public static final int ABSTRACT_SYNTAX_NOT_SUPPORTED
public static final int TRANSFER_SYNTAXES_NOT_SUPPORTED
protected JdtLogger log
public int getType()
public int getMessageType()
getMessageType
in interface ULServiceMessage
public java.lang.String getMessageTypeName()
ULServiceMessage
getMessageTypeName
in interface ULServiceMessage
public java.lang.String getCallingTitle()
public java.lang.String getCalledTitle()
public void setCalledTitle(java.lang.String calledtitle)
calledtitle
- the called titlepublic void setCallingTitle(java.lang.String callingtitle)
callingtitle
- the calling titlepublic java.lang.String getImplementationClassUID()
public java.lang.String getImplementationVersionName()
public void setImplementationClassUID(java.lang.String s)
s
- the implementation class UIDpublic void setImplementationVersionName(java.lang.String s)
s
- the implementation version namepublic int getMaxPduSize()
public void setMaxPduSize(int maxpdusize)
public void setMaxOperationsInvoked(int n)
n
- the maximum number of invoked operationspublic int getMaxOperationsInvoked()
public void setMaxOperationsPerformed(int n)
n
- the maximum number of operations performedpublic int getMaxOperationsPerformed()
public void setScuScpRoleSelection(int asid, int scurole, int scprole) throws IllegalValueException
asid
- the abstract syntaxscurole
- the role as SCU
scprole
- the role as SCP
IllegalValueException
public int getScuRole(int asid) throws IllegalValueException
asid
- the abstract syntaxIllegalValueException
- IllegalValueExceptionpublic int getScpRole(int asid) throws IllegalValueException
asid
- the abstract syntaxIllegalValueException
- IllegalValueExceptionpublic ExtendedNegotiation[] getExtendedNegotiations()
public void setExtendedNegotiations(ExtendedNegotiation[] extendedNegotiations)
extendedNegotiations
- the array of ExtendedNegotiation objectspublic PresentationContext getPresentationContext(int index)
index
- the indexpublic PresentationContext findPresentationContext(int pcid)
pcid
- the presentation context ID (odd number between 1 and 255)public byte getPresentationContextID(int index)
public int getID(int index)
index
- the indexpublic int getResult(int index)
index
- the indexpublic int getPresentationContexts()
public UIDEntry getTransferSyntax(int index)
index
- the index of the presentation contextpublic void addPresentationContext(byte id, int result, int tsid) throws IllegalValueException
IllegalValueException
public void addPresentationContext(int id, int result, int tsid) throws IllegalValueException
id
- the presentation context ID (an odd number between 1 and 255)result
- one of:
tsid
- the transfer syntax (relevant if result is ACCEPTANCE, a com.archimed.dicom.TransferSyntax constant)IllegalValueException
public UserIdentityNegotiationResponse getUserIdentityNegotiationResponse()
public void setUserIdentityNegotiationResponse(UserIdentityNegotiationResponse userIdentityNegotiationResponse)
public java.lang.String toString()
toString
in class java.lang.Object