|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Oftplet
Define the methods that Oftplets must implement.
An Oftplet is a small Java program that run within the Odette FTP Library. Oftplets provides complementary implementation to theOdetteFtpHandler
on the support for protocol data movement and
acknowledgment.
OftpletFactory
on the
event of the channel open.init(OdetteFtpSession)
.destroy()
method.OdetteFtpHandler
during the life cycle of the communication session.
Method Summary | |
---|---|
void |
destroy()
Called by the Oftplet container to indicate it is being taken out of service. |
OftpletListener |
getListener()
|
SecurityContext |
getSecurityContext()
|
OftpletSpeaker |
getSpeaker()
|
void |
init(OdetteFtpSession session)
Called by the Oftplet container to indicate that it is placed into service. |
boolean |
isProtocolVersionSupported(OdetteFtpVersion version)
|
void |
onExceptionCaught(Throwable cause)
Callback method called on event of an unexpected exception during the communication session and while performing file transfer. |
void |
onSessionEnd()
Callback method indicating protocol release of End Session (ESID) command - normal or abnormal protocol termination. |
void |
onSessionStart()
|
Method Detail |
---|
void init(OdetteFtpSession session) throws OdetteFtpException
s
-
OdetteFtpException
void destroy()
void onSessionStart()
void onSessionEnd()
Oftplet#init(OdetteFtpContext)
method can be used with similar
way, since it's invoked when the protocol session is just created.
reasonText
- void onExceptionCaught(Throwable cause)
cause
- boolean isProtocolVersionSupported(OdetteFtpVersion version)
version
-
SecurityContext getSecurityContext()
OftpletSpeaker getSpeaker()
OftpletListener getListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |