|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OftpletListener
Method Summary | |
---|---|
StartFileResponse |
acceptStartFile(VirtualFile virtualFile)
Callback method indicating a receive file request, used to construct and return the VirtualFile instance. |
void |
onDataReceived(VirtualFile virtualFile,
long totalOctetsReceived)
|
void |
onNotificationReceived(DeliveryNotification notif)
Callback method to indicate the Oftplet about the receive of a delivery notification. |
EndFileResponse |
onReceiveFileEnd(VirtualFile virtualFile,
long recordCount,
long unitCount)
Callback method indicating the file receive end request with given parameters information used to check the integrity of the received file. |
void |
onReceiveFileError(VirtualFile virtualFile,
AnswerReasonInfo reason)
|
void |
onReceiveFileStart(VirtualFile virtualFile,
long answerCount)
|
Method Detail |
---|
StartFileResponse acceptStartFile(VirtualFile virtualFile)
null
corresponds to refuse the file receiving - reply with Start File Negative
Answer (SFNA) with AnswerReason.UNSPECIFIED
reason.
The given parameters provide required information to map the transferring
VirtualFile into the Oftplet implementation's local system.
virtualFile
- holder of file receive indication parameters.
void onReceiveFileStart(VirtualFile virtualFile, long answerCount)
void onDataReceived(VirtualFile virtualFile, long totalOctetsReceived)
EndFileResponse onReceiveFileEnd(VirtualFile virtualFile, long recordCount, long unitCount)
boolean
value indicates whether the other
peer, operating in the Speaker state, should issue a Change
Direction (CD) command and revert this Oftplet implementation
ODETTE-FTP entity state.
recordCount
- number of records the other ODETTE-FTP peer sent in the
VirtualFile.unitCount
- exact number of units (octets) transmitted.
void onReceiveFileError(VirtualFile virtualFile, AnswerReasonInfo reason)
void onNotificationReceived(DeliveryNotification notif)
notif
- holder of the received delivery notification parameters.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |