|
Trispark JDT 2.50.13 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.archimed.dicom.network.Response
com.archimed.dicom.network.Acknowledge
public class Acknowledge
represents an associate acknowledge message. In particular, it contains all the presentation contexts contained in the acknowledge. The presentation contexts are indexed from zero to the number of presentation contexts minus one. This index is NOT the presentation context ID: an odd number between 1 and 255 specified with every negotiated presentation context and used to identify in the association the currently used presentation context to which a DIMSE message applies.
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.
| Field Summary | |
|---|---|
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
|
| Fields inherited from interface com.archimed.dicom.network.ULServiceMessage |
|---|
ABORT, ASS_ACKNOWLEDGE, ASS_REJECT, ASS_REQUEST, DIMSE, REL_REQUEST, REL_RESPONSE |
| Constructor Summary | |
|---|---|
Acknowledge()
|
|
| Method Summary | |
|---|---|
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 |
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public Acknowledge()
| Method Detail |
|---|
public int getType()
public int getMessageType()
getMessageType in interface ULServiceMessagepublic java.lang.String getCallingTitle()
public java.lang.String getCalledTitle()
public void setCalledTitle(java.lang.String calledtitle)
calledtitle - public void setCallingTitle(java.lang.String callingtitle)
callingtitle - public java.lang.String getImplementationClassUID()
public java.lang.String getImplementationVersionName()
public void setImplementationClassUID(java.lang.String s)
s - public void setImplementationVersionName(java.lang.String s)
s - public int getMaxPduSize()
public void setMaxPduSize(int maxpdusize)
public void setMaxOperationsInvoked(int n)
n - public int getMaxOperationsInvoked()
public void setMaxOperationsPerformed(int n)
n - public 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 syntax
IllegalValueException
public int getScpRole(int asid)
throws IllegalValueException
asid - the abstract syntax
IllegalValueExceptionpublic ExtendedNegotiation[] getExtendedNegotiations()
public void setExtendedNegotiations(ExtendedNegotiation[] extendedNegotiations)
extendedNegotiations - the array of ExtendedNegotiation objectspublic PresentationContext getPresentationContext(int index)
index -
public 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 -
public int getResult(int index)
index -
public int getPresentationContexts()
public UIDEntry getTransferSyntax(int index)
i -
public 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)
IllegalValueExceptionpublic UserIdentityNegotiationResponse getUserIdentityNegotiationResponse()
public void setUserIdentityNegotiationResponse(UserIdentityNegotiationResponse userIdentityNegotiationResponse)
public java.lang.String toString()
toString in class java.lang.Object
|
Trispark JDT 2.50.13 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||