org.apache.excalibur.source.impl
Class FTPSource.EnhancedFtpClient

java.lang.Object
  extended by sun.net.NetworkClient
      extended by sun.net.TransferProtocolClient
          extended by sun.net.ftp.FtpClient
              extended by org.apache.excalibur.source.impl.FTPSource.EnhancedFtpClient
Enclosing class:
FTPSource

private static class FTPSource.EnhancedFtpClient
extends sun.net.ftp.FtpClient

Need to extend FtpClient in order to get to protected issueCommand and implement additional functionality.


Field Summary
 
Fields inherited from class sun.net.ftp.FtpClient
FTP_PORT, welcomeMsg
 
Fields inherited from class sun.net.TransferProtocolClient
serverResponse
 
Fields inherited from class sun.net.NetworkClient
connectTimeout, defaultConnectTimeout, defaultSoTimeout, encoding, proxy, readTimeout, serverInput, serverOutput, serverSocket
 
Constructor Summary
private FTPSource.EnhancedFtpClient(java.lang.String host)
           
 
Method Summary
(package private)  void delete(java.lang.String path)
           
(package private)  void mkdir(java.lang.String directoryName)
          Create a directory in the current working directory.
(package private)  void mkdirs(java.lang.String directoryPath)
          Create all directories along a directory path if they do not already exist.
 
Methods inherited from class sun.net.ftp.FtpClient
append, ascii, binary, cd, cdUp, closeServer, finalize, get, getFtpProxyHost, getFtpProxyPort, getUseFtpProxy, issueCommand, issueCommandCheck, list, login, matchNonProxyHosts, nameList, noop, openDataConnection, openPassiveDataConnection, openServer, openServer, put, pwd, readReply, reInit, rename, system
 
Methods inherited from class sun.net.TransferProtocolClient
getResponseString, getResponseStrings, readServerResponse, sendServer
 
Methods inherited from class sun.net.NetworkClient
createSocket, doConnect, getConnectTimeout, getLocalAddress, getReadTimeout, serverIsOpen, setConnectTimeout, setReadTimeout
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTPSource.EnhancedFtpClient

private FTPSource.EnhancedFtpClient(java.lang.String host)
                             throws java.io.IOException
Throws:
java.io.IOException
Method Detail

delete

void delete(java.lang.String path)
      throws java.io.IOException
Throws:
java.io.IOException

mkdir

void mkdir(java.lang.String directoryName)
     throws java.io.IOException
Create a directory in the current working directory.

Throws:
java.io.IOException

mkdirs

void mkdirs(java.lang.String directoryPath)
      throws java.io.IOException
Create all directories along a directory path if they do not already exist. The algorithm traverses the directory tree in reversed direction. cd'ing first to the deepest level and if that directory doesn't exist try cd'ing to its parent from where it can be created. NOTE: after completion the current working directory will be the directory identified by directoryPath.

Throws:
java.io.IOException