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

This class is to be implemented in order to allow Business actions according to FTP service
| Constructor Summary | |
|---|---|
BusinessHandler()
Constructor with no argument (mandatory) |
|
| Method Summary | |
|---|---|
abstract void |
afterRunCommandKo(goldengate.common.command.exception.CommandAbstractException e)
Run when a FTP exception is catch (the channel is not necessary closed after). |
abstract void |
afterRunCommandOk()
This method is called for every received message after the execution of the command but before the final reply to the client. |
abstract void |
afterTransferDoneBeforeAnswer(FtpTransfer transfer)
Run when a transfer is finished (eventually in error) but before answering. |
abstract void |
beforeRunCommand()
This method is called for every received message before the execution of the command. |
protected abstract void |
cleanSession()
To Clean the session attached objects |
void |
clear()
Clean the BusinessHandler. |
abstract void |
exceptionLocalCaught(org.jboss.netty.channel.ExceptionEvent e)
Run when an exception is get before the channel is closed. |
abstract void |
executeChannelClosed()
Is executed when the channel is closed, just before cleaning and just after. |
abstract 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. |
abstract FtpAuth |
getBusinessNewAuth()
Create a new AuthInterface according to business choice |
abstract FtpDir |
getBusinessNewDir()
Create a new FtpDir according to business choice |
abstract goldengate.common.file.Restart |
getBusinessNewRestart()
Create a new Restart according to business choice |
protected String |
getDefaultFeatMessage()
|
abstract String |
getFeatMessage()
|
FtpSession |
getFtpSession()
|
abstract String |
getHelpMessage(String arg)
|
protected String |
getMLSxOptsMessage(String[] args)
|
NetworkHandler |
getNetworkHandler()
|
abstract String |
getOptsMessage(String[] args)
|
abstract AbstractCommand |
getSpecializedSiteCommand(FtpSession session,
String line)
Check if a command pass to SITE command is legal |
void |
setNetworkHandler(NetworkHandler networkHandler)
Called when the NetworkHandler is created |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BusinessHandler()
| Method Detail |
|---|
public void setNetworkHandler(NetworkHandler networkHandler)
networkHandler - the networkHandler to setpublic NetworkHandler getNetworkHandler()
public FtpSession getFtpSession()
public abstract FtpAuth getBusinessNewAuth()
public abstract FtpDir getBusinessNewDir()
public abstract goldengate.common.file.Restart getBusinessNewRestart()
public abstract String getHelpMessage(String arg)
arg - the argument from HELP command
public abstract String getFeatMessage()
protected String getDefaultFeatMessage()
public abstract String getOptsMessage(String[] args)
throws goldengate.common.command.exception.CommandAbstractException
args -
goldengate.common.command.exception.CommandAbstractException
public abstract AbstractCommand getSpecializedSiteCommand(FtpSession session,
String line)
session - line -
protected String getMLSxOptsMessage(String[] args)
args -
public abstract void executeChannelClosed()
protected abstract void cleanSession()
public void clear()
public abstract void executeChannelConnected(org.jboss.netty.channel.Channel channel)
channel - public abstract void exceptionLocalCaught(org.jboss.netty.channel.ExceptionEvent e)
e -
public abstract void beforeRunCommand()
throws goldengate.common.command.exception.CommandAbstractException
goldengate.common.command.exception.CommandAbstractException
public abstract void afterRunCommandOk()
throws goldengate.common.command.exception.CommandAbstractException
goldengate.common.command.exception.CommandAbstractExceptionpublic abstract void afterRunCommandKo(goldengate.common.command.exception.CommandAbstractException e)
e -
public abstract void afterTransferDoneBeforeAnswer(FtpTransfer transfer)
throws goldengate.common.command.exception.CommandAbstractException
transfer -
goldengate.common.command.exception.CommandAbstractException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||