|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjdcm.A_Associate
public final class A_Associate
The A_Associate class represents a connection established between two DICOM application entities. It can be instantiated such that a specified A_Associate will serve the Service Class User (SCU) role and/or the Service Class Provider (SCP) role. The connection (known as an association) supports the exchange of network messages related to specifically negotiated DICOM services.
A_Abort,
A_Release| Field Summary | |
|---|---|
static int |
ASSOCIATION_REJECTED
|
static int |
REJECTED_PERMANENT
|
static int |
REJECTED_TRANSIENT
|
static java.lang.String |
ROLE_BOTH
|
static java.lang.String |
ROLE_SCP
|
static java.lang.String |
ROLE_SCU
|
| Constructor Summary | |
|---|---|
A_Associate(java.net.Socket socket,
A_Associate associate)
Construct a association for proxy association. |
|
A_Associate(java.net.Socket socket,
java.lang.String callingEntity,
java.lang.String calledEntity,
java.util.HashMap<java.lang.String,java.lang.String[]> vPresContext)
Construct association for request with presentation contexts and role selection in HashMap. |
|
A_Associate(java.net.Socket socket,
java.lang.String callingEntity,
java.lang.String calledEntity,
java.util.HashMap<java.lang.String,java.lang.String[]> vPresContext,
java.util.HashMap<java.lang.String,java.lang.String> vRoleSelection)
Construct association for request with presentation contexts and role selection in HashMap. |
|
A_Associate(java.net.Socket socket,
java.lang.String callingEntity,
java.lang.String calledEntity,
java.lang.String abstractSyntaxUID,
java.lang.String transferSyntaxUID)
Construct a association for request with abstractSyntaxUID and transferSyntax. |
|
| Method Summary | |
|---|---|
void |
close()
Close stream |
java.util.HashMap<java.lang.String,java.lang.String> |
getAcceptedPresContext()
|
java.util.HashMap<java.lang.String,java.lang.String> |
getAcceptedRoleSelection()
|
java.lang.String |
getCalledEntity()
Retrieve the called application entity title of this request |
java.lang.String |
getCalledImplementationClassUID()
Retrieve the Implementation Class UID of the called application. |
java.lang.String |
getCalledImplementationVersion()
Retrieve the Implementation Version of the called application. |
java.lang.String |
getCalledMaximunLength()
Retrieve the largest PDU size the local system is willing to receive |
java.lang.String |
getCallingEntity()
Retrieve the called application entity title of this request |
java.lang.String |
getCallingImplementationClassUID()
Retrieve the Implementation Class UID of the called application. |
java.lang.String |
getCallingImplementationVersion()
Retrieve the Implementation Version of the called application. |
java.lang.String |
getCallingMaximunLength()
Retrieve the largest PDU size the local system is willing to receive |
int |
getPresentationContextID(java.lang.String SOPClassUID)
Retrieve the first presentation context ID associate with this SOP Class or Meta Class |
int |
readRPS()
Read reponse association |
void |
readRQ()
Read incoming association |
void |
reject(int result,
int reason)
Reject an association request sent by a remote association requester application. |
void |
setCalledEntity(java.lang.String calledEntity)
Sets the called application entity title of this request. |
void |
setCallingEntity(java.lang.String callingEntity)
Sets the calling application entity title of this request. |
java.lang.String |
toString()
|
void |
writeRPS()
Write reponse association |
void |
writeRQ()
Write request association |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int ASSOCIATION_REJECTED
public static int REJECTED_PERMANENT
public static int REJECTED_TRANSIENT
public static java.lang.String ROLE_SCU
public static java.lang.String ROLE_SCP
public static java.lang.String ROLE_BOTH
| Constructor Detail |
|---|
public A_Associate(java.net.Socket socket,
java.lang.String callingEntity,
java.lang.String calledEntity,
java.util.HashMap<java.lang.String,java.lang.String[]> vPresContext,
java.util.HashMap<java.lang.String,java.lang.String> vRoleSelection)
throws java.io.IOException
socket - the socket connectioncallingEntity - my calling AE TitlecalledEntity - called AE title of peervPresContext - presentation contextvRoleSelection - role selection
java.io.IOException - If an I/O error occurs
public A_Associate(java.net.Socket socket,
java.lang.String callingEntity,
java.lang.String calledEntity,
java.util.HashMap<java.lang.String,java.lang.String[]> vPresContext)
throws java.io.IOException
socket - the socket connectioncallingEntity - my calling AE TitlecalledEntity - called AE title of peervPresContext - presentation context
java.io.IOException - If an I/O error occurs
public A_Associate(java.net.Socket socket,
java.lang.String callingEntity,
java.lang.String calledEntity,
java.lang.String abstractSyntaxUID,
java.lang.String transferSyntaxUID)
throws java.io.IOException
socket - the socket connectioncallingEntity - my calling AE TitlecalledEntity - called AE title of peerabstractSyntaxUID - transferSyntaxUID -
java.io.IOException - If an I/O error occurs
public A_Associate(java.net.Socket socket,
A_Associate associate)
throws java.io.IOException
socket - the socket connectionassociate -
java.io.IOException - If an I/O error occurs| Method Detail |
|---|
public void setCallingEntity(java.lang.String callingEntity)
public java.lang.String getCallingEntity()
public java.lang.String getCallingImplementationClassUID()
public java.lang.String getCallingImplementationVersion()
public java.lang.String getCallingMaximunLength()
public void setCalledEntity(java.lang.String calledEntity)
public java.lang.String getCalledEntity()
public java.lang.String getCalledImplementationClassUID()
public java.lang.String getCalledImplementationVersion()
public java.lang.String getCalledMaximunLength()
public java.util.HashMap<java.lang.String,java.lang.String> getAcceptedPresContext()
public java.util.HashMap<java.lang.String,java.lang.String> getAcceptedRoleSelection()
public int getPresentationContextID(java.lang.String SOPClassUID)
SOPClassUID - SOP Class UID or Meta SOP Class
public void writeRQ()
throws java.io.IOException
java.io.IOException - If an I/O error occurs
public int readRPS()
throws java.io.IOException
java.io.IOException - If an I/O error occurs
public void readRQ()
throws java.io.IOException
java.io.IOException - If an I/O error occurs
public void writeRPS()
throws java.io.IOException
java.io.IOException - If an I/O error occurs
public void reject(int result,
int reason)
result - One of the following values shall be used:
reason - Reason specifies why the association is being rejected. it shall take one of the following:
public void close()
throws java.io.IOException
java.io.IOException - If an I/O error occurspublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||