|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neociclo.odetteftp.support.OftpletEventListenerAdapter
public class OftpletEventListenerAdapter
Constructor Summary | |
---|---|
OftpletEventListenerAdapter()
|
Method Summary | |
---|---|
StartFileResponse |
acceptStartFile(VirtualFile virtualFile)
Callback method indicating a receive file request, used to construct and return the VirtualFile instance. |
void |
configure(OdetteFtpSession session)
|
void |
destroy()
|
void |
init(OdetteFtpSession session)
|
OdetteFtpObject |
nextOftpObjectToSend()
|
void |
onDataReceived(VirtualFile virtualFile,
long totalOctetsReceived)
|
void |
onDataSent(VirtualFile virtualFile,
long totalOctetsSent)
|
void |
onExceptionCaught(Throwable cause)
|
void |
onNotificationReceived(DeliveryNotification notif)
Callback method to indicate the Oftplet about the receive of a delivery notification. |
void |
onNotificationSent(DeliveryNotification notif)
|
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)
|
void |
onSendFileEnd(VirtualFile virtualFile)
Callback method invoked when the file is fully transmitted. |
void |
onSendFileError(VirtualFile virtualFile,
AnswerReasonInfo reason,
boolean retryLater)
Callback method to indicate the transmitting file is not accepted by the other peer - being in the Speaker state. |
void |
onSendFileStart(VirtualFile virtualFile,
long answerCount)
Callback method to indicate the given file transfer will begin. |
void |
onSessionEnd()
|
void |
onSessionStart()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OftpletEventListenerAdapter()
Method Detail |
---|
public OdetteFtpObject nextOftpObjectToSend()
nextOftpObjectToSend
in interface OftpletSpeaker
public void onDataSent(VirtualFile virtualFile, long totalOctetsSent)
onDataSent
in interface OftpletSpeaker
public void onNotificationSent(DeliveryNotification notif)
onNotificationSent
in interface OftpletSpeaker
public void onSendFileEnd(VirtualFile virtualFile)
OftpletSpeaker
onSendFileEnd
in interface OftpletSpeaker
public void onSendFileError(VirtualFile virtualFile, AnswerReasonInfo reason, boolean retryLater)
OftpletSpeaker
Oftplet.onExceptionCaught(Throwable)
method.
onSendFileError
in interface OftpletSpeaker
public void onSendFileStart(VirtualFile virtualFile, long answerCount)
OftpletSpeaker
onSendFileStart
in interface OftpletSpeaker
virtualFile
- the bundle of transfer info and virtual file being
transferred.answerCount
- negotiated restart offsetpublic StartFileResponse acceptStartFile(VirtualFile virtualFile)
OftpletListener
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.
acceptStartFile
in interface OftpletListener
virtualFile
- holder of file receive indication parameters.
public void onDataReceived(VirtualFile virtualFile, long totalOctetsReceived)
onDataReceived
in interface OftpletListener
public void onNotificationReceived(DeliveryNotification notif)
OftpletListener
onNotificationReceived
in interface OftpletListener
notif
- holder of the received delivery notification parameters.public EndFileResponse onReceiveFileEnd(VirtualFile virtualFile, long recordCount, long unitCount)
OftpletListener
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.
onReceiveFileEnd
in interface OftpletListener
recordCount
- number of records the other ODETTE-FTP peer sent in the
VirtualFile.unitCount
- exact number of units (octets) transmitted.
public void onReceiveFileError(VirtualFile virtualFile, AnswerReasonInfo reason)
onReceiveFileError
in interface OftpletListener
public void onReceiveFileStart(VirtualFile virtualFile, long answerCount)
onReceiveFileStart
in interface OftpletListener
public void onExceptionCaught(Throwable cause)
onExceptionCaught
in interface OftpletEventListener
public void onSessionStart()
onSessionStart
in interface OftpletEventListener
public void onSessionEnd()
onSessionEnd
in interface OftpletEventListener
public void destroy()
destroy
in interface OftpletEventListener
public void init(OdetteFtpSession session) throws OdetteFtpException
init
in interface OftpletEventListener
OdetteFtpException
public void configure(OdetteFtpSession session)
configure
in interface OftpletEventListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |