com.citycolor.net.ftp
Class FTPControlConnection
java.lang.Object
com.citycolor.net.telnet.TelnetClientConnection
com.citycolor.net.ftp.FTPControlConnection
- public class FTPControlConnection
- extends TelnetClientConnection
Just like in the RFC specification, a FTP Control Connection is
based on a standard Telnet Connection.
This class handles the low level signaling between client and
server. The nature of FTP and the design of this library enable
the 2 FTPControlConnection.execute(...) methods to handle the issue
of all low level commands while parsing the response in a generic but
complete way.
Look at FTPHandler.Java for examples of how to use this class.
- Author:
- Sebastian E. Ferreyra Pons
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FTPControlConnection
public FTPControlConnection(java.net.InetAddress inetaddress,
int i)
throws FTPExecuteException,
java.io.IOException
- Throws:
FTPExecuteException
java.io.IOException
FTPControlConnection
public FTPControlConnection(java.net.InetAddress inetaddress)
throws FTPExecuteException,
java.io.IOException
- Throws:
FTPExecuteException
java.io.IOException
getServerConnectString
public java.lang.String getServerConnectString()
execute
public FTPResponse execute(java.lang.String command)
throws FTPExecuteException,
java.io.IOException
- Executes a FTP command.
Higher level APIs implement the actual standard
(or non-standard) FTP commands such as CDUP, QUIT,
NOOP, etc.
- Parameters:
command -
- Returns:
- The server's response to the command.
- Throws:
FTPExecuteException
java.io.IOException
execute
public FTPResponse execute(java.lang.String command,
java.lang.String value)
throws FTPExecuteException,
java.io.IOException
- Executes a FTP command with the specified value.
Higher level APIs implement the actual standard
(or non-standard) FTP commands such as USER, PASS,
STOR, etc.
- Parameters:
command - value -
- Returns:
- The server's response to the command.
- Throws:
FTPExecuteException
java.io.IOException
getAddressString
public static java.lang.String getAddressString(java.net.InetAddress inetaddress,
int i)
getSocketFromAddressString
public static java.net.Socket getSocketFromAddressString(java.lang.String address)
Copyright 1999-2004 Sebastian E. Ferreyra Pons. All Rights Reserved.