|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgoldengate.ftp.core.session.FtpSession
public class FtpSession
Main class that stores any information that must be accessible from anywhere during the connection of one user.
Constructor Summary | |
---|---|
FtpSession(FtpConfiguration configuration,
BusinessHandler handler)
Constructor |
Method Summary | |
---|---|
void |
clear()
|
String |
getAnswer()
|
FtpAuth |
getAuth()
|
static String |
getBasename(String path)
|
int |
getBlockSize()
|
BusinessHandler |
getBusinessHandler()
|
FtpConfiguration |
getConfiguration()
Get the configuration |
org.jboss.netty.channel.Channel |
getControlChannel()
|
AbstractCommand |
getCurrentCommand()
|
FtpDataAsyncConn |
getDataConn()
|
FtpDir |
getDir()
|
goldengate.common.file.FileParameterInterface |
getFileParameter()
|
NetworkHandler |
getNetworkHandler()
|
AbstractCommand |
getPreviousCommand()
|
goldengate.common.command.ReplyCode |
getReplyCode()
|
goldengate.common.file.Restart |
getRestart()
|
String |
getUniqueExtension()
|
boolean |
isCurrentCommandFinished()
|
boolean |
isReady()
|
void |
openDataConnection()
Try to open a connection. |
void |
reinitFtpAuth()
Reinitialize the authentication to the connection step |
void |
setControlConnected()
This function is called when the Command Channel is connected (from channelConnected of the NetworkHandler) |
void |
setCurrentCommandFinished()
Set the Current Command as finished |
void |
setExitErrorCode(String answer)
Set Exit code after an error |
void |
setExitNormalCode(String answer)
Set Exit normal code |
void |
setNextCommand(goldengate.common.command.CommandInterface command)
Set the new current command |
void |
setPreviousAsCurrentCommand()
Set the previous command as the new current command (used after a incorrect sequence of commands or unknown command) |
void |
setReady(boolean isReady)
|
void |
setReplyCode(goldengate.common.command.exception.CommandAbstractException exception)
|
void |
setReplyCode(goldengate.common.command.ReplyCode replyCode,
String answer)
|
void |
setSpecialInit(FtpAuth auth,
FtpDir dir,
goldengate.common.file.Restart restart)
Special initialization (FtpExec with Https session) |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FtpSession(FtpConfiguration configuration, BusinessHandler handler)
configuration
- handler
- Method Detail |
---|
public BusinessHandler getBusinessHandler()
public FtpConfiguration getConfiguration()
public FtpDir getDir()
getDir
in interface goldengate.common.file.SessionInterface
public FtpDataAsyncConn getDataConn()
public FtpAuth getAuth()
getAuth
in interface goldengate.common.file.SessionInterface
public goldengate.common.file.Restart getRestart()
getRestart
in interface goldengate.common.file.SessionInterface
public void setControlConnected()
public void setSpecialInit(FtpAuth auth, FtpDir dir, goldengate.common.file.Restart restart)
auth
- dir
- restart
- public org.jboss.netty.channel.Channel getControlChannel()
public NetworkHandler getNetworkHandler()
public void setNextCommand(goldengate.common.command.CommandInterface command)
command
- public AbstractCommand getCurrentCommand()
public AbstractCommand getPreviousCommand()
public void setPreviousAsCurrentCommand()
public boolean isCurrentCommandFinished()
public void setCurrentCommandFinished()
public String getAnswer()
public void setReplyCode(goldengate.common.command.ReplyCode replyCode, String answer)
replyCode
- the replyCode to setanswer
- public void setReplyCode(goldengate.common.command.exception.CommandAbstractException exception)
exception
- public void setExitErrorCode(String answer)
answer
- public void setExitNormalCode(String answer)
answer
- public goldengate.common.command.ReplyCode getReplyCode()
public void clear()
clear
in interface goldengate.common.file.SessionInterface
public boolean isReady()
public void setReady(boolean isReady)
isReady
- the isReady to setpublic String toString()
toString
in class Object
public int getBlockSize()
getBlockSize
in interface goldengate.common.file.SessionInterface
public goldengate.common.file.FileParameterInterface getFileParameter()
getFileParameter
in interface goldengate.common.file.SessionInterface
public static String getBasename(String path)
path
-
public void reinitFtpAuth()
public void openDataConnection() throws goldengate.common.command.exception.Reply425Exception
goldengate.common.command.exception.Reply425Exception
- if the connection cannot be openedpublic String getUniqueExtension()
getUniqueExtension
in interface goldengate.common.file.SessionInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |