public class FtpWagon extends StreamWagon
Modifier and Type | Class and Description |
---|---|
class |
FtpWagon.PrintCommandListener |
authenticationInfo, BUFFER_SEGMENT_SIZE, DEFAULT_BUFFER_SIZE, interactive, MAXIMUM_BUFFER_SIZE, MINIMUM_AMOUNT_OF_TRANSFER_CHUNKS, proxyInfo, repository, sessionEventSupport, transferEventSupport
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, ROLE
Constructor and Description |
---|
FtpWagon() |
Modifier and Type | Method and Description |
---|---|
void |
closeConnection() |
protected FTPClient |
createClient() |
void |
fillInputData(InputData inputData) |
void |
fillOutputData(OutputData outputData) |
protected void |
fireGetCompleted(Resource resource,
File localFile) |
protected void |
firePutCompleted(Resource resource,
File file) |
protected void |
fireSessionDebug(String msg) |
String |
getControlEncoding() |
List<String> |
getFileList(String destinationDirectory) |
boolean |
isPassiveMode() |
protected void |
openConnectionInternal() |
void |
putDirectory(File sourceDirectory,
String destinationDirectory) |
boolean |
resourceExists(String resourceName) |
void |
setControlEncoding(String controlEncoding) |
void |
setPassiveMode(boolean passiveMode) |
boolean |
supportsDirectoryCopy() |
checkInputStream, checkOutputStream, get, getIfNewer, getIfNewerToStream, getInputStream, getOutputStream, getToStream, put, putFromStream, putFromStream, putFromStream
addSessionListener, addTransferListener, cleanupGetTransfer, cleanupPutTransfer, connect, connect, connect, connect, connect, connect, createParentDirectories, disconnect, finishGetTransfer, finishPutTransfer, fireGetInitiated, fireGetStarted, firePutInitiated, firePutStarted, fireSessionConnectionRefused, fireSessionDisconnected, fireSessionDisconnecting, fireSessionError, fireSessionLoggedIn, fireSessionLoggedOff, fireSessionOpened, fireSessionOpening, fireTransferDebug, fireTransferError, fireTransferProgress, getAuthenticationInfo, getBufferCapacityForTransfer, getPath, getPermissionsOverride, getProxyInfo, getProxyInfo, getReadTimeout, getRepository, getSessionEventSupport, getTimeout, getTransfer, getTransfer, getTransfer, getTransfer, getTransfer, getTransfer, getTransferEventSupport, hasSessionListener, hasTransferListener, isInteractive, openConnection, postProcessListeners, putTransfer, putTransfer, removeSessionListener, removeTransferListener, setInteractive, setPermissionsOverride, setReadTimeout, setSessionEventSupport, setTimeout, setTransferEventSupport, transfer, transfer, transfer, transfer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, removeSessionListener, removeTransferListener, setInteractive, setReadTimeout, setTimeout
public FtpWagon()
public boolean isPassiveMode()
public void setPassiveMode(boolean passiveMode)
protected void openConnectionInternal() throws ConnectionException, AuthenticationException
openConnectionInternal
in class AbstractWagon
ConnectionException
AuthenticationException
protected FTPClient createClient()
protected void firePutCompleted(Resource resource, File file)
firePutCompleted
in class AbstractWagon
protected void fireGetCompleted(Resource resource, File localFile)
fireGetCompleted
in class AbstractWagon
public void closeConnection() throws ConnectionException
closeConnection
in class StreamWagon
ConnectionException
public void fillOutputData(OutputData outputData) throws TransferFailedException
fillOutputData
in class StreamWagon
TransferFailedException
public void fillInputData(InputData inputData) throws TransferFailedException, ResourceDoesNotExistException
fillInputData
in class StreamWagon
TransferFailedException
ResourceDoesNotExistException
protected void fireSessionDebug(String msg)
fireSessionDebug
in class AbstractWagon
public List<String> getFileList(String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
getFileList
in interface Wagon
getFileList
in class AbstractWagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public boolean resourceExists(String resourceName) throws TransferFailedException, AuthorizationException
resourceExists
in interface Wagon
resourceExists
in class AbstractWagon
TransferFailedException
AuthorizationException
public boolean supportsDirectoryCopy()
supportsDirectoryCopy
in interface Wagon
supportsDirectoryCopy
in class AbstractWagon
public void putDirectory(File sourceDirectory, String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
putDirectory
in interface Wagon
putDirectory
in class AbstractWagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public String getControlEncoding()
public void setControlEncoding(String controlEncoding)
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.