
public class ExecBusinessHandler extends BusinessHandler
| Constructor and Description |
|---|
ExecBusinessHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRunCommandKo(CommandAbstractException e)
Run when a FTP exception is catch (the channel is not necessary closed
after).
|
void |
afterRunCommandOk()
This method is called for every received message after the execution of
the
command but before the final
reply to the client.
|
void |
afterTransferDoneBeforeAnswer(FtpTransfer transfer)
Run when a transfer is finished (eventually in error) but before
answering.
|
void |
beforeRunCommand()
This method is called for every received message before the execution of
the command.
|
protected void |
cleanSession()
To Clean the session attached objects
|
void |
exceptionLocalCaught(Throwable cause)
Run when an exception is get before the channel is closed.
|
void |
executeChannelClosed()
Is executed when the channel is closed, just before cleaning and just
after.
|
void |
executeChannelConnected(io.netty.channel.Channel channel)
Is executed when the channel is connected after the handler is on, before
answering OK or not on
connection, except if the global service is going to shutdown.
|
FileBasedAuth |
getBusinessNewAuth()
Create a new AuthInterface according to business choice
|
FileBasedDir |
getBusinessNewDir()
Create a new FtpDir according to business choice
|
FilesystemBasedFtpRestart |
getBusinessNewRestart()
Create a new Restart according to business choice
|
String |
getFeatMessage() |
String |
getHelpMessage(String arg) |
String |
getOptsMessage(String[] args) |
AbstractCommand |
getSpecializedSiteCommand(FtpSession session,
String line)
Check if a command pass to SITE command is legal
|
clear, getDefaultFeatMessage, getFtpSession, getMLSxOptsMessage, getNetworkHandler, getSslFeatMessage, setNetworkHandlerpublic final void afterTransferDoneBeforeAnswer(FtpTransfer transfer) throws CommandAbstractException
BusinessHandlerafterTransferDoneBeforeAnswer in class BusinessHandlerCommandAbstractExceptionpublic final void afterRunCommandKo(CommandAbstractException e)
BusinessHandlerafterRunCommandKo in class BusinessHandlerpublic final void afterRunCommandOk()
BusinessHandlerafterRunCommandOk in class BusinessHandlerpublic final void beforeRunCommand()
throws CommandAbstractException
BusinessHandlerbeforeRunCommand in class BusinessHandlerCommandAbstractExceptionprotected final void cleanSession()
BusinessHandlercleanSession in class BusinessHandlerpublic final void exceptionLocalCaught(Throwable cause)
BusinessHandlerexceptionLocalCaught in class BusinessHandlerpublic final void executeChannelClosed()
BusinessHandlerexecuteChannelClosed in class BusinessHandlerpublic final void executeChannelConnected(io.netty.channel.Channel channel)
BusinessHandlerexecuteChannelConnected in class BusinessHandlerpublic final FileBasedAuth getBusinessNewAuth()
BusinessHandlergetBusinessNewAuth in class BusinessHandlerpublic final FileBasedDir getBusinessNewDir()
BusinessHandlergetBusinessNewDir in class BusinessHandlerpublic final FilesystemBasedFtpRestart getBusinessNewRestart()
BusinessHandlergetBusinessNewRestart in class BusinessHandlerpublic final String getHelpMessage(String arg)
getHelpMessage in class BusinessHandlerarg - the argument from HELP commandpublic final String getFeatMessage()
getFeatMessage in class BusinessHandlerpublic final String getOptsMessage(String[] args) throws CommandAbstractException
getOptsMessage in class BusinessHandlerCommandAbstractExceptionpublic final AbstractCommand getSpecializedSiteCommand(FtpSession session, String line)
BusinessHandlergetSpecializedSiteCommand in class BusinessHandlerCopyright © 2009–2022 Waarp. All rights reserved.