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
Field Summary | |
protected static int | |
protected static char | |
protected InteractiveUserInfo | |
protected 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 |
|
protected int |
|
List |
|
boolean |
|
InteractiveUserInfo | |
KnownHostsProvider | |
protected int |
|
protected String |
|
protected int |
|
protected File | |
protected static Resource |
|
protected static String |
|
protected static String |
|
protected void |
|
void | |
void |
|
boolean |
|
void |
|
void |
|
boolean |
protected static final int DEFAULT_SSH_PORT
- Field Value:
- 22
protected static final char PATH_SEPARATOR
- Field Value:
- '/'
public void executeCommand(String command) throws CommandExecutionException
- Specified by:
- executeCommand in interface CommandExecutor
protected int getDirectoryMode(RepositoryPermissions permissions)
- Parameters:
permissions
- repository's permissions
- Returns:
- the directory mode for the repository or
-1
if it wasn't set
public List getFileList(String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
- Specified by:
- getFileList in interface Wagon
- Overrides:
- getFileList in interface AbstractWagon
public boolean getIfNewer(String resourceName, File destination, long timestamp) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
- Specified by:
- getIfNewer in interface Wagon
protected int getOctalMode(String mode)
protected int getPort()
protected File getPrivateKey()
protected static String getResourceDirectory(String resourceName)
protected static String getResourceFilename(String r)
protected void handleGetException(Resource resource, Exception e, File destination) throws TransferFailedException, ResourceDoesNotExistException
public void openConnection() throws AuthenticationException
- Specified by:
- openConnection in interface Wagon
public void putDirectory(File sourceDirectory, String destinationDirectory) throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
- Specified by:
- putDirectory in interface Wagon
- Overrides:
- putDirectory in interface AbstractWagon
public boolean resourceExists(String resourceName) throws TransferFailedException, AuthorizationException
- Specified by:
- resourceExists in interface Wagon
- Overrides:
- resourceExists in interface AbstractWagon
public final void setKnownHostsProvider(KnownHostsProvider knownHostsProvider)
- Specified by:
- setKnownHostsProvider in interface SshWagon
public boolean supportsDirectoryCopy()
- Specified by:
- supportsDirectoryCopy in interface Wagon
- Overrides:
- supportsDirectoryCopy in interface AbstractWagon