public class ScpExternalWagon extends AbstractWagon implements CommandExecutor
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 |
---|
ScpExternalWagon() |
Modifier and Type | Method and Description |
---|---|
void |
closeConnection() |
void |
executeCommand(String command) |
Streams |
executeCommand(String command,
boolean ignoreFailures) |
void |
get(String resourceName,
File destination) |
List<String> |
getFileList(String destinationDirectory) |
boolean |
getIfNewer(String resourceName,
File destination,
long timestamp) |
String |
getScpArgs() |
String |
getScpExecutable() |
String |
getSshArgs() |
String |
getSshExecutable() |
protected boolean |
isPuTTY() |
protected void |
openConnectionInternal() |
void |
put(File source,
String destination) |
void |
putDirectory(File sourceDirectory,
String destinationDirectory) |
boolean |
resourceExists(String resourceName) |
void |
setScpArgs(String scpArgs) |
void |
setScpExecutable(String scpExecutable) |
void |
setSshArgs(String sshArgs) |
void |
setSshExecutable(String sshExecutable) |
boolean |
supportsDirectoryCopy() |
addSessionListener, addTransferListener, cleanupGetTransfer, cleanupPutTransfer, connect, connect, connect, connect, connect, connect, createParentDirectories, disconnect, finishGetTransfer, finishPutTransfer, 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, 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 ScpExternalWagon()
protected void openConnectionInternal() throws AuthenticationException
openConnectionInternal
in class AbstractWagon
AuthenticationException
public void closeConnection()
closeConnection
in class AbstractWagon
public boolean getIfNewer(String resourceName, File destination, long timestamp) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
getIfNewer
in interface Wagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public void executeCommand(String command) throws CommandExecutionException
executeCommand
in interface CommandExecutor
CommandExecutionException
public Streams executeCommand(String command, boolean ignoreFailures) throws CommandExecutionException
executeCommand
in interface CommandExecutor
CommandExecutionException
protected boolean isPuTTY()
public void put(File source, String destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
put
in interface Wagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public void get(String resourceName, File destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
get
in interface Wagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public List<String> getFileList(String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
getFileList
in interface Wagon
getFileList
in class AbstractWagon
TransferFailedException
ResourceDoesNotExistException
AuthorizationException
public void putDirectory(File sourceDirectory, String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
putDirectory
in interface Wagon
putDirectory
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 String getScpExecutable()
public void setScpExecutable(String scpExecutable)
public String getSshExecutable()
public void setSshExecutable(String sshExecutable)
public String getScpArgs()
public void setScpArgs(String scpArgs)
public String getSshArgs()
public void setSshArgs(String sshArgs)
Copyright © 2003–2022 The Apache Software Foundation. All rights reserved.