Class AbstractSshWagon
- java.lang.Object
-
- org.apache.maven.wagon.AbstractWagon
-
- org.apache.maven.wagon.providers.rsync.external.AbstractExternalWagon
-
- org.apache.maven.wagon.providers.rsync.external.AbstractSshWagon
-
- All Implemented Interfaces:
CommandExecutor,ExternalWagon,SshCommandExecutor,WagonHasAuthenticationInfo,Wagon
- Direct Known Subclasses:
RsyncSshExternalWagon,ScpExternalWagon
public abstract class AbstractSshWagon extends AbstractExternalWagon implements SshCommandExecutor
-
-
Field Summary
-
Fields inherited from class org.apache.maven.wagon.AbstractWagon
authenticationInfo, BUFFER_SEGMENT_SIZE, DEFAULT_BUFFER_SIZE, interactive, MAXIMUM_BUFFER_SIZE, MINIMUM_AMOUNT_OF_TRANSFER_CHUNKS, proxyInfo, repository, sessionEventSupport, transferEventSupport
-
Fields inherited from interface org.apache.maven.wagon.CommandExecutor
ROLE
-
Fields inherited from interface org.apache.maven.wagon.providers.rsync.external.SshCommandExecutor
SSH_FATAL_EXIT_CODE
-
Fields inherited from interface org.apache.maven.wagon.Wagon
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, ROLE
-
-
Constructor Summary
Constructors Constructor Description AbstractSshWagon()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getFileList(String destinationDirectory)protected voidputMkdirRemote(String destination)protected voidputSetPermissionRemote(Resource resource, String destination)booleanresourceExists(String resourceName)-
Methods inherited from class org.apache.maven.wagon.providers.rsync.external.AbstractExternalWagon
closeConnection, createBaseCommandLine, executeCopyCommand, executeCopyCommand, fireSessionDebug, fireTransferDebug, get, getIfNewer, openConnectionInternal, put, supportsDirectoryCopy
-
Methods inherited from class org.apache.maven.wagon.AbstractWagon
addSessionListener, addTransferListener, cleanupGetTransfer, cleanupPutTransfer, connect, connect, connect, connect, connect, connect, createParentDirectories, disconnect, finishGetTransfer, finishPutTransfer, fireGetCompleted, fireGetInitiated, fireGetStarted, firePutCompleted, firePutInitiated, firePutStarted, fireSessionConnectionRefused, fireSessionDisconnected, fireSessionDisconnecting, fireSessionError, fireSessionLoggedIn, fireSessionLoggedOff, fireSessionOpened, fireSessionOpening, fireTransferError, fireTransferProgress, getAuthenticationInfo, getBufferCapacityForTransfer, getPath, getPermissionsOverride, getProxyInfo, getProxyInfo, getReadTimeout, getRepository, getSessionEventSupport, getTimeout, getTransfer, getTransfer, getTransfer, getTransfer, getTransfer, getTransfer, getTransferEventSupport, hasSessionListener, hasTransferListener, isInteractive, openConnection, postProcessListeners, putDirectory, putTransfer, putTransfer, removeSessionListener, removeTransferListener, setInteractive, setPermissionsOverride, setReadTimeout, setSessionEventSupport, setTimeout, setTransferEventSupport, transfer, transfer, transfer, transfer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.maven.wagon.providers.rsync.external.ExternalWagon
getExecutable
-
Methods inherited from interface org.apache.maven.wagon.providers.rsync.external.SshCommandExecutor
createSshBaseCommandLine, executeCommand, executeCommand, fireSessionDebug, fireTransferDebug, getSshArgs, getSshExecutable
-
Methods inherited from interface org.apache.maven.wagon.Wagon
addSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, get, getIfNewer, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, put, putDirectory, removeSessionListener, removeTransferListener, setInteractive, setReadTimeout, setTimeout
-
Methods inherited from interface org.apache.maven.wagon.providers.rsync.external.WagonHasAuthenticationInfo
buildRemoteHost, getAuthenticationInfo
-
-
-
-
Method Detail
-
getFileList
public List<String> getFileList(String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
- Specified by:
getFileListin interfaceWagon- Overrides:
getFileListin classAbstractWagon- Throws:
TransferFailedExceptionResourceDoesNotExistExceptionAuthorizationException
-
resourceExists
public boolean resourceExists(String resourceName) throws TransferFailedException, AuthorizationException
- Specified by:
resourceExistsin interfaceWagon- Overrides:
resourceExistsin classAbstractWagon- Throws:
TransferFailedExceptionAuthorizationException
-
putMkdirRemote
protected void putMkdirRemote(String destination) throws AuthorizationException, ResourceDoesNotExistException, TransferFailedException
- Specified by:
putMkdirRemotein classAbstractExternalWagon- Throws:
AuthorizationExceptionResourceDoesNotExistExceptionTransferFailedException
-
putSetPermissionRemote
protected void putSetPermissionRemote(Resource resource, String destination) throws TransferFailedException
- Specified by:
putSetPermissionRemotein classAbstractExternalWagon- Throws:
TransferFailedException
-
-