org.finj
Class FTPClientTest

java.lang.Object
  extended by org.finj.FTPClient
      extended by org.finj.FTPClientTest

public class FTPClientTest
extends FTPClient

The configuration used by the FTPClientTest is embodied in a .properties file. If no file is provided, then the default configuration is used :

# connection settings
 host = localhost
 port = 21

 # login settings
 user = finj
 pass = ,finj.test

 # directory settings
 path = /tmp
 temp = finj
 file = test.txt
Any of those values can be overriden in a file named FTPClientTestConfiguration.properties placed in CLASSPATH before finj binaries, and using the same syntax.

Copyright (C) 2000-2008 Javier Iglesias.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Version:
$Id: FTPClientTest.java 47 2008-01-11 23:09:46Z jiglesias $
Author:
Javier Iglesias -- jiglesias@users.sourceforge.net

Constructor Summary
FTPClientTest()
           
 
Method Summary
 java.lang.String[] getFileNames(boolean passive)
           
 java.lang.String[] getServerStatus()
           
 void makeDirectory()
           
 void open()
           
 void removeDirectory()
           
 void setWorkingDirectory()
           
 
Methods inherited from class org.finj.FTPClient
abortCommand, allocateSpace, allocateSpace, appendToFile, appendToFile, ascii, binary, broadcastCommand, broadcastResponse, cd, checkConnection, close, closeServer, dataReceived, dataSent, deleteFile, doSite, get, getDataStructure, getDataTransferMode, getDataType, getFile, getFile, getFileDescriptors, getFileDescriptors, getFileDescriptors, getFileDescriptors, getFileFrom, getFileNames, getFileNames, getFileNames, getObserver, getServerStatus, getServerSystemName, getWorkingDirectory, hasObserver, isConnected, isConnected, isVerbose, isVerbose, login, logout, makeDirectory, mountStructure, notValidResponse, open, open, openServer, openServer, processCommand, processPostCommand, put, putFile, putFile, putUniqueFile, putUniqueFile, readFTPResponse, readLineFromControlConnection, removeDirectory, removeObserver, renameFile, sendFTPCommand, setAccount, setDataPort, setDataPort, setDataPort, setDataStructure, setDataTransferMode, setDataType, setDataType, setObserver, setWorkingDirectory, setWorkingDirectoryUp, toByteArray, toByteArray, toInt, toUnsignedShort, usePassiveDataTransfer, usePassiveDataTransfer, writeLineToControlConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTPClientTest

public FTPClientTest()
              throws java.io.IOException
Throws:
java.io.IOException
Since:
v1.0.2
Method Detail

open

public void open()
          throws java.io.IOException
Throws:
java.io.IOException
Since:
v1.0.2

makeDirectory

public void makeDirectory()
                   throws java.io.IOException
Throws:
java.io.IOException
Since:
v1.0.2

removeDirectory

public void removeDirectory()
                     throws java.io.IOException
Throws:
java.io.IOException
Since:
v1.0.2

setWorkingDirectory

public void setWorkingDirectory()
                         throws java.io.IOException
Throws:
java.io.IOException
Since:
v1.0.2

getFileNames

public java.lang.String[] getFileNames(boolean passive)
                                throws java.io.IOException
Overrides:
getFileNames in class FTPClient
Throws:
java.io.IOException
Since:
v1.0.2

getServerStatus

public java.lang.String[] getServerStatus()
                                   throws java.io.IOException
Overrides:
getServerStatus in class FTPClient
Throws:
java.io.IOException
Since:
v1.0.2


Copyright © 2009. All Rights Reserved.