|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgoldengate.ftp.core.control.BusinessHandler
goldengate.ftp.simpleimpl.control.SimpleBusinessHandler
public class SimpleBusinessHandler

BusinessHandler implementation that allows pre and post actions on any operations and specifically on transfer operations
| Constructor Summary | |
|---|---|
SimpleBusinessHandler()
|
|
| Method Summary | |
|---|---|
void |
afterRunCommandKo(goldengate.common.command.exception.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(org.jboss.netty.channel.ExceptionEvent e)
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(org.jboss.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 |
| Methods inherited from class goldengate.ftp.core.control.BusinessHandler |
|---|
clear, getDefaultFeatMessage, getFtpSession, getMLSxOptsMessage, getNetworkHandler, setNetworkHandler |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleBusinessHandler()
| Method Detail |
|---|
public void afterRunCommandKo(goldengate.common.command.exception.CommandAbstractException e)
BusinessHandler
afterRunCommandKo in class BusinessHandler
public void afterRunCommandOk()
throws goldengate.common.command.exception.CommandAbstractException
BusinessHandler
afterRunCommandOk in class BusinessHandlergoldengate.common.command.exception.CommandAbstractException
public void beforeRunCommand()
throws goldengate.common.command.exception.CommandAbstractException
BusinessHandler
beforeRunCommand in class BusinessHandlergoldengate.common.command.exception.CommandAbstractExceptionprotected void cleanSession()
BusinessHandler
cleanSession in class BusinessHandlerpublic void exceptionLocalCaught(org.jboss.netty.channel.ExceptionEvent e)
BusinessHandler
exceptionLocalCaught in class BusinessHandlerpublic void executeChannelClosed()
BusinessHandler
executeChannelClosed in class BusinessHandlerpublic void executeChannelConnected(org.jboss.netty.channel.Channel channel)
BusinessHandler
executeChannelConnected in class BusinessHandlerpublic FileBasedAuth getBusinessNewAuth()
BusinessHandler
getBusinessNewAuth in class BusinessHandlerpublic FileBasedDir getBusinessNewDir()
BusinessHandler
getBusinessNewDir in class BusinessHandlerpublic FilesystemBasedFtpRestart getBusinessNewRestart()
BusinessHandler
getBusinessNewRestart in class BusinessHandlerpublic String getHelpMessage(String arg)
getHelpMessage in class BusinessHandlerarg - the argument from HELP command
public String getFeatMessage()
getFeatMessage in class BusinessHandler
public String getOptsMessage(String[] args)
throws goldengate.common.command.exception.CommandAbstractException
getOptsMessage in class BusinessHandlergoldengate.common.command.exception.CommandAbstractException
public AbstractCommand getSpecializedSiteCommand(FtpSession session,
String line)
BusinessHandler
getSpecializedSiteCommand in class BusinessHandler
public void afterTransferDoneBeforeAnswer(FtpTransfer transfer)
throws goldengate.common.command.exception.CommandAbstractException
BusinessHandler
afterTransferDoneBeforeAnswer in class BusinessHandlergoldengate.common.command.exception.CommandAbstractException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||