public class SftpWagon extends AbstractJschWagon
EXEC_CHANNEL, session, sshTool
authenticationInfo, BUFFER_SEGMENT_SIZE, DEFAULT_BUFFER_SIZE, interactive, MAXIMUM_BUFFER_SIZE, MINIMUM_AMOUNT_OF_TRANSFER_CHUNKS, proxyInfo, repository, sessionEventSupport, transferEventSupport
ROLE
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT
Constructor and Description |
---|
SftpWagon() |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanupGetTransfer(Resource resource) |
protected void |
cleanupPutTransfer(Resource resource) |
void |
closeConnection() |
void |
fillInputData(InputData inputData) |
void |
fillOutputData(OutputData outputData) |
protected void |
finishPutTransfer(Resource resource,
InputStream input,
OutputStream output) |
int |
getDirectoryMode(RepositoryPermissions permissions) |
List<String> |
getFileList(String destinationDirectory) |
int |
getOctalMode(String mode) |
void |
openConnectionInternal() |
void |
putDirectory(File sourceDirectory,
String destinationDirectory) |
boolean |
resourceExists(String resourceName) |
executeCommand, executeCommand, executeCommand, getInteractiveUserInfo, getKnownHostsProvider, getPreferredAuthentications, getStrictHostKeyChecking, handleGetException, setInteractiveUserInfo, setKnownHostsProvider, setPreferredAuthentications, setStrictHostKeyChecking, setUIKeyboardInteractive, supportsDirectoryCopy, transfer
checkInputStream, checkOutputStream, get, getIfNewer, getIfNewerToStream, getInputStream, getOutputStream, getToStream, put, putFromStream, putFromStream, putFromStream
addSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, createParentDirectories, disconnect, finishGetTransfer, fireGetCompleted, fireGetInitiated, fireGetStarted, firePutCompleted, firePutInitiated, firePutStarted, fireSessionConnectionRefused, fireSessionDebug, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, get, getIfNewer, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, put, removeSessionListener, removeTransferListener, setInteractive, setReadTimeout, setTimeout
public SftpWagon()
public void closeConnection()
closeConnection
in class AbstractJschWagon
public void openConnectionInternal() throws AuthenticationException
openConnectionInternal
in class AbstractJschWagon
AuthenticationException
public void putDirectory(File sourceDirectory, String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
putDirectory
in interface Wagon
putDirectory
in class AbstractJschWagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public List<String> getFileList(String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
getFileList
in interface Wagon
getFileList
in class AbstractJschWagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public boolean resourceExists(String resourceName) throws TransferFailedException, AuthorizationException
resourceExists
in interface Wagon
resourceExists
in class AbstractJschWagon
TransferFailedException
AuthorizationException
protected void cleanupGetTransfer(Resource resource)
cleanupGetTransfer
in class AbstractWagon
protected void cleanupPutTransfer(Resource resource)
cleanupPutTransfer
in class AbstractWagon
protected void finishPutTransfer(Resource resource, InputStream input, OutputStream output) throws TransferFailedException
finishPutTransfer
in class AbstractWagon
TransferFailedException
public void fillInputData(InputData inputData) throws TransferFailedException, ResourceDoesNotExistException
fillInputData
in class StreamWagon
TransferFailedException
ResourceDoesNotExistException
public void fillOutputData(OutputData outputData) throws TransferFailedException
fillOutputData
in class StreamWagon
TransferFailedException
public int getDirectoryMode(RepositoryPermissions permissions)
permissions
- repository's permissions-1
if it
wasn't setpublic int getOctalMode(String mode)
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.