|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.mina.common.IoFilterAdapter
org.dicom4j.network.association.support.AssociationImpl
public class AssociationImpl
Default Association implementation
implements TransportConnectionListener to
be notify of TransportConnectionListener events
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.apache.mina.common.IoFilter |
|---|
org.apache.mina.common.IoFilter.NextFilter, org.apache.mina.common.IoFilter.WriteRequest |
| Constructor Summary | |
|---|---|
AssociationImpl()
|
|
AssociationImpl(AssociationConfiguration aConfiguration)
|
|
| Method Summary | |
|---|---|
void |
closeTransportConnection(boolean aWaitARTIM)
|
boolean |
containsAttribute(String key)
Returns true if this Association contains the attribute with the specified key. |
void |
exceptionCaught(Throwable cause)
|
AssociateRequest |
getAssociateRequest()
|
AssociateResponseHandler |
getAssociateResponseListener()
|
AssociateSession |
getAssociateSession()
Return the AssociateSession
of this association. |
AssociationListener |
getAssociationListener()
|
AsynOperationsWindow |
getAsynOperationsWindow()
the AsynOperationsWindow |
Object |
getAttachment()
Returns an attachment of this Association. |
Object |
getAttribute(String key)
Returns the value of user-defined attribute of this Association. |
Set<String> |
getAttributeKeys()
Returns the set of keys of all user-defined attributes. |
AssociationConfiguration |
getConfiguration()
get the AssociationConfiguration |
AssociationMonitor |
getMonitor()
|
String |
getTransferSyntaxFromPresentationID(byte aPresentationID)
|
boolean |
isEstablished()
Determine if an association is established |
boolean |
isReleased()
Indicates that the association is in release State and can be disposed |
void |
messageReceived(org.apache.mina.common.IoFilter.NextFilter nextFilter,
org.apache.mina.common.IoSession session,
Object message)
|
void |
messageSent(org.apache.mina.common.IoFilter.NextFilter nextFilter,
org.apache.mina.common.IoSession session,
Object message)
|
Object |
removeAttribute(String key)
Removes a user-defined attribute with the specified key. |
void |
sendAbort(AssociateAbort aAbort)
Send an AssociateAbort request to a remote peer |
void |
sendAssociate(AssociateRequest aRequest)
Send an A-ASSOCIATE request to a remote peer |
void |
sendMessage(byte aPresentationContextID,
AbstractDimseMessage aMessage)
Send a DimseMessage to a remote peer |
void |
sendReject(AssociateReject aAssociateReject)
send a A-ASSOCIATE REJECT |
void |
sendReject(byte aResult,
byte aSource,
byte aReason)
send a A-ASSOCIATE REJECT |
void |
sendReleaseRequest()
Send an A-RELEASE request to a remote peer |
void |
sendReleaseResponse()
Send an A-RELEASE response to a remote peer |
void |
sessionClosed(org.apache.mina.common.IoFilter.NextFilter nextFilter,
org.apache.mina.common.IoSession session)
|
void |
sessionCreated(org.apache.mina.common.IoFilter.NextFilter nextFilter,
org.apache.mina.common.IoSession session)
|
void |
sessionOpened(org.apache.mina.common.IoFilter.NextFilter nextFilter,
org.apache.mina.common.IoSession session)
|
void |
setAssociateRequest(AssociateRequest aRequest)
|
void |
setAssociateRequestListener(AssociateRequestHandler aListener)
|
void |
setAssociateResponseListener(AssociateResponseHandler aHandler)
|
void |
setAssociationListener(AssociationListener aHandler)
|
Object |
setAttachment(Object attachment)
Sets an attachment of this session. |
Object |
setAttribute(String key)
Sets a user defined attribute without a value. |
Object |
setAttribute(String key,
Object value)
Sets a user-defined attribute. |
void |
setConfiguration(AssociationConfiguration aConfiguration)
set the AssociationConfiguration |
void |
setMonitor(AssociationMonitor aAssociationMonitor)
|
String |
toString()
|
void |
waitAssociate()
Wait an AssociateRequest from a remote peer |
| Methods inherited from class org.apache.mina.common.IoFilterAdapter |
|---|
destroy, exceptionCaught, filterClose, filterWrite, init, onPostAdd, onPostRemove, onPreAdd, onPreRemove, sessionIdle |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AssociationImpl()
throws Exception
Exception
public AssociationImpl(AssociationConfiguration aConfiguration)
throws Exception
Exception| Method Detail |
|---|
public void closeTransportConnection(boolean aWaitARTIM)
throws AssociationException
closeTransportConnection in interface AssociationAssociationExceptionpublic boolean containsAttribute(String key)
Association
containsAttribute in interface Association
public void exceptionCaught(Throwable cause)
throws Exception
Exceptionpublic AssociateRequest getAssociateRequest()
public AssociateResponseHandler getAssociateResponseListener()
getAssociateResponseListener in interface Associationpublic AssociateSession getAssociateSession()
Association
Return the
AssociateSession
of this association.
getAssociateSession in interface Associationpublic AssociationListener getAssociationListener()
getAssociationListener in interface Associationpublic AsynOperationsWindow getAsynOperationsWindow()
AssociationAsynOperationsWindow
getAsynOperationsWindow in interface Associationpublic Object getAttachment()
Association
getAttachment in interface Associationpublic Object getAttribute(String key)
Association
getAttribute in interface Associationkey - the key of the attribute
public Set<String> getAttributeKeys()
Association
getAttributeKeys in interface Associationpublic AssociationConfiguration getConfiguration()
AssociationAssociationConfiguration
getConfiguration in interface Associationpublic AssociationMonitor getMonitor()
getMonitor in interface Associationpublic String getTransferSyntaxFromPresentationID(byte aPresentationID)
getTransferSyntaxFromPresentationID in interface Associationpublic boolean isEstablished()
isEstablished in interface Associationpublic boolean isReleased()
Association
isReleased in interface Association
public void messageReceived(org.apache.mina.common.IoFilter.NextFilter nextFilter,
org.apache.mina.common.IoSession session,
Object message)
messageReceived in interface org.apache.mina.common.IoFiltermessageReceived in class org.apache.mina.common.IoFilterAdapter
public void messageSent(org.apache.mina.common.IoFilter.NextFilter nextFilter,
org.apache.mina.common.IoSession session,
Object message)
messageSent in interface org.apache.mina.common.IoFiltermessageSent in class org.apache.mina.common.IoFilterAdapterpublic Object removeAttribute(String key)
Association
removeAttribute in interface Association
public void sendAbort(AssociateAbort aAbort)
throws Exception
AssociationAssociateAbort request to a remote peer
sendAbort in interface AssociationaAbort - the Abort request
Exception - if error occurs
public void sendAssociate(AssociateRequest aRequest)
throws Exception
Association
sendAssociate in interface AssociationaRequest - the AssociateRequest
Exception - if error occurs
public void sendMessage(byte aPresentationContextID,
AbstractDimseMessage aMessage)
throws Exception
AssociationDimseMessage to a remote peer
sendMessage in interface AssociationaPresentationContextID - the Presentation Context ID to useaMessage - the DimseMessage to send
Exception - if error occurs
public void sendReject(AssociateReject aAssociateReject)
throws Exception
Association
sendReject in interface AssociationException - if error occurs
public void sendReject(byte aResult,
byte aSource,
byte aReason)
throws Exception
Association
sendReject in interface AssociationException - if error occurs
public void sendReleaseRequest()
throws Exception
Association
sendReleaseRequest in interface AssociationException - if error occurs
public void sendReleaseResponse()
throws Exception
Association
sendReleaseResponse in interface AssociationException
public void sessionClosed(org.apache.mina.common.IoFilter.NextFilter nextFilter,
org.apache.mina.common.IoSession session)
sessionClosed in interface org.apache.mina.common.IoFiltersessionClosed in class org.apache.mina.common.IoFilterAdapter
public void sessionCreated(org.apache.mina.common.IoFilter.NextFilter nextFilter,
org.apache.mina.common.IoSession session)
sessionCreated in interface org.apache.mina.common.IoFiltersessionCreated in class org.apache.mina.common.IoFilterAdapter
public void sessionOpened(org.apache.mina.common.IoFilter.NextFilter nextFilter,
org.apache.mina.common.IoSession session)
sessionOpened in interface org.apache.mina.common.IoFiltersessionOpened in class org.apache.mina.common.IoFilterAdapterpublic void setAssociateRequest(AssociateRequest aRequest)
public void setAssociateRequestListener(AssociateRequestHandler aListener)
setAssociateRequestListener in interface Associationpublic void setAssociateResponseListener(AssociateResponseHandler aHandler)
setAssociateResponseListener in interface AssociationaHandler - the listenerpublic void setAssociationListener(AssociationListener aHandler)
setAssociationListener in interface AssociationaHandler - the listenerpublic Object setAttachment(Object attachment)
Association
setAttachment in interface Associationpublic Object setAttribute(String key)
AssociationBoolean.TRUE.
setAttribute in interface Associationkey - the key of the attribute
public Object setAttribute(String key,
Object value)
Association
setAttribute in interface Associationkey - the key of the attributevalue - the value of the attribute
public void setConfiguration(AssociationConfiguration aConfiguration)
AssociationAssociationConfiguration
setConfiguration in interface AssociationaConfiguration - the configurationpublic void setMonitor(AssociationMonitor aAssociationMonitor)
setMonitor in interface AssociationaAssociationMonitor - the monitorpublic String toString()
toString in class Object
public void waitAssociate()
throws Exception
AssociationAssociateRequest from a remote peer
waitAssociate in interface AssociationException - if error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||