|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.pixelmed.network.ReceivedDataHandler
public abstract class ReceivedDataHandler
This abstract class provides a mechanism to process each PDU as it is received on an association.
Typically a private sub-class would be declared and instantiated
overriding the sendPDataIndication() method.
CompositeResponseHandler,
StorageSOPClassSCP| Field Summary | |
|---|---|
protected int |
debugLevel
|
protected boolean |
done
|
protected boolean |
release
|
| Method Summary | |
|---|---|
protected void |
dumpPDVList(LinkedList pdvList)
Dump a list of the Presentation Data Values supplied to standard error |
boolean |
isDone()
Are we finished ? |
boolean |
isToBeReleased()
Are we to release the association once done ? |
abstract void |
sendPDataIndication(PDataPDU pdata,
Association association)
The code handling the reception of data on an Association calls
this method to indicate that a PDU has been received (a P-DATA-INDICATION). |
void |
setDone(boolean done)
The code handling the reception of data on an Association calls
this method to indicate that no more PDUs are expected. |
void |
setRelease(boolean release)
The code handling the reception of data on an Association calls
this method to indicate that the association is to be released once done. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int debugLevel
protected boolean done
protected boolean release
| Method Detail |
|---|
protected void dumpPDVList(LinkedList pdvList)
pdvList - a java.util.LinkedList of PresentationDataValue
public abstract void sendPDataIndication(PDataPDU pdata,
Association association)
throws DicomNetworkException,
DicomException,
IOException
Association calls
this method to indicate that a PDU has been received (a P-DATA-INDICATION).
pdata - the PDU that was receivedassociation - the association on which the PDU was received
IOException
DicomException
DicomNetworkExceptionpublic boolean isDone()
public boolean isToBeReleased()
public void setDone(boolean done)
Association calls
this method to indicate that no more PDUs are expected.
done - to be set to true when no more PDUs are expected, usually when
the last fragment of the data (or command, if no data) is seenpublic void setRelease(boolean release)
Association calls
this method to indicate that the association is to be released once done.
release - to be set to true when the assoication is to be released once done
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||