helma.Ftp

Object
   |
   +--helma.Ftp


This class represents a FTP client, providing access to an FTP server. The FTP client needs Daniel Savarese's NetComponents library in the classpath in order to work.
Defined in Ftp.js



Constructor Summary
helma.Ftp(<String> server)
            Constructor for FTP client objects, to send and receive files from an FTP server.
 
Properties Summary
 Object server
          
 Object status
          
 
Methods Summary
 Object active()
           Switches the connection to use active mode.
 Object ascii()
           Sets transfer mode to ascii for transmitting text-based data.
 Object binary()
           Sets transfer mode to binary for transmitting images and other non-text files.
 Object cd(path)
           Changes the working directory on the FTP server.
 Object deleteFile(remoteFile)
          
 Object dir(path)
          
 Object getFile(<String> remoteFile, <String> localFile)
           Transfers a file from the FTP server to the local file system.
 Object getString(remoteFile)
          
 Object lcd(<String> dir)
           Changes the working directory of the local machine when being connected to an FTP server.
 Boolean login(<String> username, <String> password)
           Logs in to the FTP server.
 Object logout()
           Terminates the current FTP session.
 Boolean mkdir(<String> dir)
           Creates a new directory on the server.
 Object passive()
           Switches the connection to use passive mode.
 Boolean putFile(<String> localFile, <String> remoteFile)
           Transfers a file from the local file system to the remote server.
 Boolean putString(<String> str, <String> remoteFile, <String> charset)
           Transfers text from a string to a file on the FTP server.
 Object pwd()
          
 Boolean rmdir(<String> dir)
           Deletes a directory on the FTP server.
 Object setReadTimeout(timeout)
           Set the default timeout in milliseconds to use when opening a socket.
 Object setTimeout(timeout)
           Sets the timeout in milliseconds to use when reading from the data connection.

Constructor Detail

helma.Ftp

helma.Ftp(<String> server)

Properties Detail

server

Object server

status

Object status

Method Detail

active

Object active()

ascii

Object ascii()

binary

Object binary()

cd

Object cd(path)

deleteFile

Object deleteFile(remoteFile)

dir

Object dir(path)

getFile

Object getFile(<String> remoteFile, <String> localFile)

getString

Object getString(remoteFile)

lcd

Object lcd(<String> dir)

login

Boolean login(<String> username, <String> password)

logout

Object logout()

mkdir

Boolean mkdir(<String> dir)

passive

Object passive()

putFile

Boolean putFile(<String> localFile, <String> remoteFile)

putString

Boolean putString(<String> str, <String> remoteFile, <String> charset)

pwd

Object pwd()

rmdir

Boolean rmdir(<String> dir)

setReadTimeout

Object setReadTimeout(timeout)

setTimeout

Object setTimeout(timeout)


Documentation generated by JSDoc on Thu Apr 5 01:59:00 2007