public class FtpSession extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
DELIMITER
The delimiter string.
|
static String |
FTP_SYSTEM
System type.
|
protected boolean |
m_BinaryContentMode
If content transfer mode is binary.
|
protected String |
m_CharacterSet
Default character set for session.
|
protected String |
m_CommandCharacterSet
Iana character set used to encode Ftp commands for this session.
|
protected String |
m_CurrentPath
The String which represents the absolute path to the Ftp current directory
|
protected FdkSession |
m_FdkSession
FdkSession.
|
protected boolean |
m_IsGuestSession
True if guest session.
|
protected String |
m_Language
Default language for session.
|
protected String |
m_ObjectToBeRenamed
Rename occurs in two commands; need to hold onto the path that is
to be renamed.
|
| Constructor and Description |
|---|
FtpSession()
Constructs a FtpSession
|
| Modifier and Type | Method and Description |
|---|---|
void |
determineCommandCharacterSet()
Determines the command character set used for this FtpSession.
|
void |
determineDocumentCharacterSetAndLanguage()
Determines the command character set used for this FtpSession.
|
void |
dispose()
Disposes the FdkSession.
|
FtpServerChannel |
getChannel()
Gets the Channel.
|
String |
getCharacterSet()
Gets the default document character set for this session.
|
String |
getCommandCharacterSet()
Gets the Iana character set that should be used to encode the ftp commands
for this session.
|
String |
getContentModeString()
Returns the string 'Binary' or 'ASCII' which describes
the content transfer mode.
|
Object |
getCookie()
Gets the Cookie.
|
String |
getCurrentPath()
Gets the CurrentPath.
|
String |
getDelimiter()
Gets the delimiter.
|
FdkSession |
getFdkSession()
Gets the FdkSession.
|
String |
getLanguage()
Gets the default document language for this session.
|
String |
getObjectToBeRenamed()
Gets the object to be renamed.
|
boolean |
isGuestSession()
Returns true if guest session.
|
void |
setBinaryContentMode(String type)
Sets the binary content mode.
|
void |
setChannel(FtpServerChannel channel)
Sets the Channel.
|
void |
setCharacterSet(String charset)
Sets the default document character set for this session.
|
void |
setCommandCharacterSet(String charset)
Sets the command character set.
|
void |
setCookie(Object cookie)
Sets the Cookie.
|
void |
setCurrentPath(String currentPath)
Sets the currentPath and currentFolder
|
void |
setFdkSession(FdkSession session)
Sets the FdkSession
|
void |
setIsGuestSession(boolean isGuestSession)
Set to true if FdkSession is a guest session.
|
void |
setLanguage(String language)
Sets the default document language for this session.
|
void |
setObjectToBeRenamed(String obj)
Sets the object to be renamed.
|
protected static String DELIMITER
public static String FTP_SYSTEM
protected boolean m_BinaryContentMode
protected String m_ObjectToBeRenamed
protected String m_CurrentPath
protected String m_CommandCharacterSet
protected FdkSession m_FdkSession
protected String m_Language
protected String m_CharacterSet
protected boolean m_IsGuestSession
public String getDelimiter()
public void setFdkSession(FdkSession session)
public FdkSession getFdkSession()
public String getCommandCharacterSet() throws Exception
Exceptionpublic void determineCommandCharacterSet()
throws Exception
Exceptionpublic void setCommandCharacterSet(String charset) throws Exception
Exceptionpublic String getContentModeString()
public void setBinaryContentMode(String type)
type - Ascii or Binarypublic void setObjectToBeRenamed(String obj)
public String getObjectToBeRenamed()
public String getCurrentPath()
public void setCurrentPath(String currentPath)
currentPath - a String containing the currentPathpublic void dispose()
public Object getCookie()
public void setCookie(Object cookie)
public FtpServerChannel getChannel()
public void setChannel(FtpServerChannel channel)
public void setLanguage(String language) throws Exception
Exceptionpublic String getLanguage() throws FdkException, Exception
FdkExceptionExceptionpublic void setCharacterSet(String charset) throws Exception
Exceptionpublic String getCharacterSet() throws FdkException, Exception
FdkExceptionExceptionpublic void determineDocumentCharacterSetAndLanguage()
throws FdkException,
Exception
FdkExceptionExceptionpublic void setIsGuestSession(boolean isGuestSession)
throws Exception
ExceptionCopyright © 2025. All rights reserved.