Class AbstractExternalWagon
- java.lang.Object
-
- org.apache.maven.wagon.AbstractWagon
-
- org.apache.maven.wagon.providers.rsync.external.AbstractExternalWagon
-
- All Implemented Interfaces:
ExternalWagon,WagonHasAuthenticationInfo,Wagon
- Direct Known Subclasses:
AbstractSshWagon,RsyncExternalWagon
public abstract class AbstractExternalWagon extends AbstractWagon implements ExternalWagon
-
-
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.Wagon
DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, ROLE
-
-
Constructor Summary
Constructors Constructor Description AbstractExternalWagon()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcloseConnection()protected abstract CommandlinecreateBaseCommandLine(File privateKey, String... options)voidexecuteCopyCommand(Resource resource, File localFile, boolean put, String... options)voidexecuteCopyCommand(Resource resource, String remoteFile, File localFile, boolean put, String... options)voidfireSessionDebug(String message)voidfireTransferDebug(String message)voidget(String resourceName, File destination)booleangetIfNewer(String resourceName, File destination, long timestamp)protected voidopenConnectionInternal()voidput(File source, String destination)protected abstract voidputMkdirRemote(String destination)protected abstract voidputSetPermissionRemote(Resource resource, String destination)booleansupportsDirectoryCopy()-
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, getFileList, 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, resourceExists, 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.Wagon
addSessionListener, addTransferListener, connect, connect, connect, connect, connect, connect, disconnect, getFileList, getReadTimeout, getRepository, getTimeout, hasSessionListener, hasTransferListener, isInteractive, openConnection, putDirectory, removeSessionListener, removeTransferListener, resourceExists, setInteractive, setReadTimeout, setTimeout
-
Methods inherited from interface org.apache.maven.wagon.providers.rsync.external.WagonHasAuthenticationInfo
buildRemoteHost, getAuthenticationInfo
-
-
-
-
Method Detail
-
closeConnection
protected void closeConnection() throws ConnectionException- Specified by:
closeConnectionin classAbstractWagon- Throws:
ConnectionException
-
createBaseCommandLine
protected abstract Commandline createBaseCommandLine(File privateKey, String... options)
-
executeCopyCommand
public void executeCopyCommand(Resource resource, File localFile, boolean put, String... options) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
- Specified by:
executeCopyCommandin interfaceExternalWagon- Throws:
TransferFailedExceptionResourceDoesNotExistExceptionAuthorizationException
-
executeCopyCommand
public void executeCopyCommand(Resource resource, String remoteFile, File localFile, boolean put, String... options) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
- Specified by:
executeCopyCommandin interfaceExternalWagon- Throws:
TransferFailedExceptionResourceDoesNotExistExceptionAuthorizationException
-
fireTransferDebug
public void fireTransferDebug(String message)
- Overrides:
fireTransferDebugin classAbstractWagon
-
fireSessionDebug
public void fireSessionDebug(String message)
- Overrides:
fireSessionDebugin classAbstractWagon
-
get
public void get(String resourceName, File destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
- Specified by:
getin interfaceWagon- Throws:
TransferFailedExceptionResourceDoesNotExistExceptionAuthorizationException
-
getIfNewer
public boolean getIfNewer(String resourceName, File destination, long timestamp) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
- Specified by:
getIfNewerin interfaceWagon- Throws:
TransferFailedExceptionResourceDoesNotExistExceptionAuthorizationException
-
openConnectionInternal
protected void openConnectionInternal() throws ConnectionException, AuthenticationException- Specified by:
openConnectionInternalin classAbstractWagon- Throws:
ConnectionExceptionAuthenticationException
-
put
public void put(File source, String destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
- Specified by:
putin interfaceWagon- Throws:
TransferFailedExceptionResourceDoesNotExistExceptionAuthorizationException
-
supportsDirectoryCopy
public boolean supportsDirectoryCopy()
- Specified by:
supportsDirectoryCopyin interfaceExternalWagon- Specified by:
supportsDirectoryCopyin interfaceWagon- Overrides:
supportsDirectoryCopyin classAbstractWagon
-
putMkdirRemote
protected abstract void putMkdirRemote(String destination) throws AuthorizationException, ResourceDoesNotExistException, TransferFailedException
-
putSetPermissionRemote
protected abstract void putSetPermissionRemote(Resource resource, String destination) throws TransferFailedException
- Throws:
TransferFailedException
-
-