Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.maven.wagon.AbstractWagon
org.apache.maven.wagon.providers.ssh.AbstractSshWagon
org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon
org.apache.maven.wagon.providers.ssh.jsch.SftpWagon
public class SftpWagon
extends AbstractJschWagon
Field Summary |
Fields inherited from class org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon | |
EXEC_CHANNEL , session |
Fields inherited from class org.apache.maven.wagon.providers.ssh.AbstractSshWagon | |
DEFAULT_SSH_PORT , PATH_SEPARATOR , interactiveUserInfo , knownHostsProvider |
Fields inherited from class org.apache.maven.wagon.AbstractWagon | |
DEFAULT_BUFFER_SIZE , authenticationInfo , interactive , proxyInfo , repository , sessionEventSupport , transferEventSupport |
Fields inherited from interface org.apache.maven.wagon.CommandExecutor | |
ROLE |
Method Summary | |
void |
|
boolean |
|
boolean |
|
void |
|
void |
Methods inherited from class org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon | |
closeConnection , executeCommand , openConnection |
Methods inherited from class org.apache.maven.wagon.providers.ssh.AbstractSshWagon | |
executeCommand , getDirectoryMode , getFileList , getIfNewer , getInteractiveUserInfo , getKnownHostsProvider , getOctalMode , getOctalMode , getPort , getPrivateKey , getResource , getResourceDirectory , getResourceFilename , handleGetException , openConnection , putDirectory , resourceExists , setInteractiveUserInfo , setKnownHostsProvider , supportsDirectoryCopy |
public void get(String resourceName, File destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
Downloads specified resource from the repository to given file.
- Parameters:
resourceName
-destination
-
public boolean getIfNewer(String resourceName, File destination, long timestamp) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
Downloads specified resource from the repository if it was modfified since specified date. The date is measured in milliseconds, between the current time and midnight, January 1, 1970 UTC and aliged to GMT timezone.
- Specified by:
- getIfNewer in interface Wagon
- Overrides:
- getIfNewer in interface AbstractSshWagon
- Parameters:
resourceName
-destination
-timestamp
-
- Returns:
true
if newer resource has been downloaded,false
if resource in the repository is older or has the same age.
public boolean getIfNewer(Resource resource, File destination, long timestamp) throws ResourceDoesNotExistException, TransferFailedException
public void put(File source, String destination) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
Copy a file from local system to remote
- Parameters:
source
- the local filedestination
- the remote destination