|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.elegantj.net.ftp.UserPI
This class encapsulates User Protocol Interpreter process (UserPI).
| Field Summary | |
static int |
DEFAULT_FTP_PORT
|
| Constructor Summary | |
UserPI()
Constructs an empty UserPI with default FTP port 21. |
|
| Method Summary | |
void |
addStatusListener(StatusListener l)
|
void |
fireStatusChanged(StatusEvent e)
|
java.lang.String |
getHostName()
Method which returns the name of FTP Server host of this UserPI. |
java.lang.String |
getPassword()
Method which returns the password of this UserPI. |
int |
getPort()
Method which returns the FTP port of this UserPI. |
UserDTP |
getUserDTP()
Method which returns the UserDTP for this UserPI. |
java.lang.String |
getUserName()
Method which returns the username of this UserPI. |
boolean |
isExistControlConnection()
Method to get status of control connection. |
void |
removeStatusListener(StatusListener l)
|
void |
sendABORCommand()
Method to send ABOR command to FTP Server. |
void |
sendACCTCommand(java.lang.String accInfo)
Method to send ACCT command to FTP Server. |
void |
sendALLOCommand(int i)
Method to send ALLO command to FTP Server. |
void |
sendAPPECommand(java.lang.String fileName)
Method to upload the specified local file on to FTP server. |
void |
sendCDUPCommand()
Method to send CDUP command to FTP Server. |
void |
sendCWDCommand(java.lang.String path)
Method to send CWD command to FTP Server. |
void |
sendDELECommand(java.lang.String path)
Method to send DELE command to FTP Server. |
void |
sendHELPCommand()
Method to send HELP command to FTP Server. |
void |
sendHELPCommand(java.lang.String command)
Method to send HELP command to FTP Server. |
java.lang.String |
sendLISTCommand()
Method to send LIST command to FTP Server. |
java.lang.String |
sendLISTCommand(java.lang.String path)
Method to send LIST command to FTP Server. |
void |
sendMKDCommand(java.lang.String path)
Method to send MKD command to FTP Server. |
void |
sendMODECommand(java.lang.String mode)
Method to send MODE command to FTP Server. |
java.lang.String |
sendNLSTCommand()
Method to send NLST command to FTP Server. |
java.lang.String |
sendNLSTCommand(java.lang.String path)
Method to send NLST command to FTP Server. |
void |
sendNOOPCommand()
Method to send NOOP command to FTP Server. |
boolean |
sendPASSCommand(java.lang.String pass)
Method to send PASS command to FTP Server. |
void |
sendPASVCommand()
Method to send PASV command to FTP Server. |
void |
sendPORTCommand(java.lang.String hostAndPort)
Method to send PORT command to FTP Server. |
java.lang.String |
sendPWDCommand()
Method to send PWD command to FTP Server. |
boolean |
sendQUITCommand()
Method to send QUIT command to FTP Server. |
void |
sendREINCommand()
Method to send REIN command to FTP Server. |
void |
sendRESTCommand(long restartPoint)
Method to send REST command to FTP Server. |
void |
sendRETRCommand(java.lang.String remotePath,
java.lang.String localPath)
Method to download specified remote file as a name specified in localPath. |
void |
sendRETRCommand(java.lang.String remotePath,
java.lang.String localPath,
long restart)
Method to download specified remote file as a name specified in localPath and with resumed point. |
void |
sendRMDCommand(java.lang.String path)
Method to send RMD command to FTP Server. |
void |
sendRNFRCommand(java.lang.String path)
Method to send RNFR command to FTP Server. |
void |
sendRNTOCommand(java.lang.String path)
Method to send RNTO command to FTP Server. |
void |
sendSITECommand(java.lang.String string)
Method to send SITE command to FTP Server. |
void |
sendSMNTCommand(java.lang.String path)
Method to send SMNT command to FTP Server. |
void |
sendSTATCommand()
Method to send STAT command to FTP Server. |
void |
sendSTATCommand(java.lang.String path)
Method to send STAT command to FTP Server. |
void |
sendSTORCommand(java.lang.String fileName,
java.lang.String path)
Method to upload the specified local file on to FTP server. |
void |
sendSTOUCommand(java.lang.String fileName)
Method to upload the specified local file on to FTP server with a new unique name given by server. |
void |
sendSTRUCommand(java.lang.String structure)
Method to send STRU command to FTP Server. |
void |
sendSYSTCommand()
Method to send SYST command to FTP Server. |
void |
sendTYPECommand(java.lang.String type)
Method to send TYPE command to FTP Server. |
boolean |
sendUSERCommand(java.lang.String user)
Method to send USER command to FTP Server. |
void |
setHostName(java.lang.String host)
Method to set the name of FTP Server host for this UserPI. |
void |
setPassword(java.lang.String password)
Method to set the password for logging into FTP Server. |
void |
setPort(int port)
Method to set the FTP port for this UserPI. |
void |
setUserName(java.lang.String username)
Method to set the username for logging into FTP Server. |
void |
userPICloseControlConnection()
Method to close conrol connection. |
void |
userPICloseDataConnection()
Method to close the data connection. |
void |
userPICloseReceiveAsciDataConnection()
Method to close data connection to receive asci data. |
void |
userPICloseReceiveBinaryDataConnection()
Method to close data connection to receive binary data. |
void |
userPICloseSendAsciDataConnection()
Method to close data connection to send asci data. |
void |
userPICloseSendBinaryDataConnection()
Method to close data connection to send binary data. |
java.lang.String |
userPIGetAsciData()
Method to get the ascii data from data connection. |
void |
userPIGetBinaryData(java.io.File file)
Method to get binary data from data connection and save it in a local file. |
void |
userPIGetBinaryData(java.io.File file,
long restartPoint)
Method to get binary data from data connection and save it in a local file. |
java.lang.String |
userPIGetPortParam(java.lang.String host,
int port)
Method to get parameter for PORT command (32 bit IP + 16 bit TCP port) for non-local host. |
java.lang.String |
userPIGetPortParamLocalHost()
Method to get parameter for PORT command (32 bit IP + 16 bit TCP port) for local host. |
java.lang.String |
userPIGetServerResponse()
Method to get the responce from FTP Server. |
boolean |
userPIOpenControlConnection()
Method to open the conrol connection. |
void |
userPIOpenReceiveAsciDataConnection()
Method to open data connection to receive asci data. |
void |
userPIOpenReceiveBinaryDataConnection()
Method to open data connection to receive binary data. |
void |
userPIOpenSendAsciDataConnection()
Method to open data connection to send asci data. |
void |
userPIOpenSendBinaryDataConnection()
Method to open data connection to send binary data. |
void |
userPISendBinaryData(java.io.File file)
Method to send binary data from a local file to FTP server on data connection. |
void |
userPISendBinaryData(java.io.File file,
long restartPoint)
Method to send binary data from a local file to FTP server on data connection. |
void |
userPISendCommand(java.lang.String command)
Method to send the FTP command to FTP server. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEFAULT_FTP_PORT
| Constructor Detail |
public UserPI()
| Method Detail |
public void addStatusListener(StatusListener l)
public void removeStatusListener(StatusListener l)
public void fireStatusChanged(StatusEvent e)
public void setHostName(java.lang.String host)
host - The name of FTP Server host for this UserPI.public java.lang.String getHostName()
public void setPort(int port)
port - The FTP port for this UserPI.public int getPort()
public void setUserName(java.lang.String username)
username - The username for logging into FTP Server.public java.lang.String getUserName()
public void setPassword(java.lang.String password)
password - The password for logging into FTP Server.public java.lang.String getPassword()
public boolean isExistControlConnection()
public boolean userPIOpenControlConnection()
public void userPICloseControlConnection()
public void userPIOpenSendAsciDataConnection()
public void userPIOpenReceiveAsciDataConnection()
public void userPIOpenSendBinaryDataConnection()
public void userPIOpenReceiveBinaryDataConnection()
public void userPICloseSendAsciDataConnection()
public void userPICloseReceiveAsciDataConnection()
public void userPICloseSendBinaryDataConnection()
public void userPICloseReceiveBinaryDataConnection()
public java.lang.String userPIGetServerResponse()
public java.lang.String userPIGetAsciData()
public void userPIGetBinaryData(java.io.File file)
file - The local file into which to save the binary data.
public void userPIGetBinaryData(java.io.File file,
long restartPoint)
file - The local file into which to save the binary data.restartPoint - The restartPoint from which to start reading the data.public void userPISendBinaryData(java.io.File file)
file - The local file from which the to read the binary data.
public void userPISendBinaryData(java.io.File file,
long restartPoint)
file - The local file from which to read the binary data.restartPoint - The restartPoint from which to start reading the data.public java.lang.String userPIGetPortParamLocalHost()
public java.lang.String userPIGetPortParam(java.lang.String host,
int port)
host - The hostname for which to get port parameter string.port - The port.
#return The port parameter string for the specified string.public void userPICloseDataConnection()
public void userPISendCommand(java.lang.String command)
command - The command to send to the FTP Server.public boolean sendUSERCommand(java.lang.String user)
user - The command parameter.
public boolean sendPASSCommand(java.lang.String pass)
pass - The command parameter.
public void sendACCTCommand(java.lang.String accInfo)
accInfo - The command parameter.public void sendCWDCommand(java.lang.String path)
path - The command parameter.public void sendCDUPCommand()
public void sendSMNTCommand(java.lang.String path)
path - The command parameter.public boolean sendQUITCommand()
public void sendREINCommand()
public void sendPORTCommand(java.lang.String hostAndPort)
hostAndPort - The command parameter.public void sendPASVCommand()
public void sendTYPECommand(java.lang.String type)
type - The command parameter.public void sendSTRUCommand(java.lang.String structure)
structure - The command parameter.public void sendMODECommand(java.lang.String mode)
mode - The command parameter.
public void sendRETRCommand(java.lang.String remotePath,
java.lang.String localPath)
remotePath - The command parameter.localPath - The command parameter.
public void sendRETRCommand(java.lang.String remotePath,
java.lang.String localPath,
long restart)
remotePath - The command parameter.localPath - The command parameter.restart - The command parameter.
public void sendSTORCommand(java.lang.String fileName,
java.lang.String path)
fileName - The command parameter.path - The command parameter.public void sendSTOUCommand(java.lang.String fileName)
fileName - The command parameter.public void sendAPPECommand(java.lang.String fileName)
fileName - The command parameter.public void sendALLOCommand(int i)
i - The command parameter.public void sendRESTCommand(long restartPoint)
restartPoint - The command parameter.public void sendRNFRCommand(java.lang.String path)
path - The command parameter.public void sendRNTOCommand(java.lang.String path)
path - The command parameter.public void sendABORCommand()
public void sendDELECommand(java.lang.String path)
path - The command parameter.public void sendRMDCommand(java.lang.String path)
path - The command parameter.public void sendMKDCommand(java.lang.String path)
path - The command parameter.public java.lang.String sendPWDCommand()
public java.lang.String sendLISTCommand()
public java.lang.String sendLISTCommand(java.lang.String path)
path - The command parameter.
public java.lang.String sendNLSTCommand()
public java.lang.String sendNLSTCommand(java.lang.String path)
path - The command parameter.
public void sendSITECommand(java.lang.String string)
string - The command parameter.public void sendSYSTCommand()
public void sendSTATCommand()
public void sendSTATCommand(java.lang.String path)
path - The command parameter.public void sendHELPCommand()
public void sendHELPCommand(java.lang.String command)
command - The command parameter.public void sendNOOPCommand()
public UserDTP getUserDTP()
|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||