|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dicom4j.network.association.listeners.defaults.DefaultAssociationListener
org.dicom4j.network.dimse.services.BaseDimseService
public abstract class BaseDimseService
Base implementation of
DimseService
interface
| Constructor Summary | |
|---|---|
BaseDimseService()
|
|
| Method Summary | |
|---|---|
void |
associationAborted(Association aAssociation,
AssociateAbort aAbort)
Invoked when the association is aborted |
void |
bind(int aMessageID,
Association aAssociation)
Bind a service |
void |
exceptionCaught(Association aAssociation,
Throwable cause)
Invoked when an exception occurs |
DimseServiceConfiguration |
getConfiguration()
get the DimseServiceConfiguration |
DimseMessageFactory |
getFactory()
|
int |
getMessageID()
Return the Message ID |
String |
getName()
Return the name of the Service |
abstract void |
handleMessage(byte aPresentationContextID,
AbstractDimseMessage aMessage)
handle a DimseMessage |
boolean |
isBinded()
Return true is the service is binded to a MessageID |
boolean |
isBinded(Association aAssociation)
|
boolean |
isFinished()
Return true if the service has finish his work, and can be unBind (should not receive messages) |
void |
setConfiguration(DimseServiceConfiguration aConfiguration)
set the DimseServiceConfiguration |
void |
setFactory(DimseMessageFactory aFactory)
|
void |
unBind()
Unbind the service, called when the service said isFinished |
| Methods inherited from class org.dicom4j.network.association.listeners.defaults.DefaultAssociationListener |
|---|
associateRelease, associationCreated, associationOpened, associationRejected, associationReleased, messageReceived, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BaseDimseService()
| Method Detail |
|---|
public void associationAborted(Association aAssociation,
AssociateAbort aAbort)
throws Exception
AssociationListener
associationAborted in interface AssociationListenerassociationAborted in interface DimseServiceassociationAborted in class DefaultAssociationListeneraAssociation - the association
Exception
public void bind(int aMessageID,
Association aAssociation)
DimseService
bind in interface DimseServiceaMessageID - the message IDaAssociation - the Association
public void exceptionCaught(Association aAssociation,
Throwable cause)
AssociationListener
exceptionCaught in interface AssociationListenerexceptionCaught in class DefaultAssociationListeneraAssociation - the associationcause - the cause of the errorpublic DimseServiceConfiguration getConfiguration()
getConfiguration in interface DimseServicepublic int getMessageID()
getMessageID in interface DimseServicepublic String getName()
DimseService
getName in interface DimseService
public abstract void handleMessage(byte aPresentationContextID,
AbstractDimseMessage aMessage)
throws Exception
DimseMessage
handleMessage in interface DimseServiceaPresentationContextID - aMessage -
Exceptionpublic boolean isBinded()
isBinded in interface DimseServicepublic boolean isBinded(Association aAssociation)
isBinded in interface DimseServicepublic boolean isFinished()
isFinished in interface DimseServicepublic void setConfiguration(DimseServiceConfiguration aConfiguration)
setConfiguration in interface DimseServiceaConfiguration - the Configurationpublic void unBind()
DimseService
unBind in interface DimseServicepublic DimseMessageFactory getFactory()
public void setFactory(DimseMessageFactory aFactory)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||