KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > fr > jayasoft > ivy > resolver > SFTPResolver


1 /*
2  * This file is subject to the license found in LICENCE.TXT in the root directory of the project.
3  *
4  * #SNAPSHOT#
5  */

6 package fr.jayasoft.ivy.resolver;
7
8 import fr.jayasoft.ivy.repository.sftp.SFTPRepository;
9
10 /**
11  * This resolver is able to work with any sftp server.
12  *
13  * It supports listing and publishing.
14  *
15  * The server host should absolutely be set using setHost.
16  *
17  * basedir defaults to .
18  * port default to 22
19  *
20  * username and password will be prompted using a dialog box if not set. So if you are in
21  * an headless environment, provide username and password.
22  */

23 public class SFTPResolver extends AbstractSshBasedResolver {
24
25     public SFTPResolver() {
26         setRepository(new SFTPRepository());
27     }
28     
29     public String JavaDoc getTypeName() {
30         return "sftp";
31     }
32     
33     public SFTPRepository getSFTPRepository() {
34         return (SFTPRepository) getRepository();
35     }
36 }
37
Popular Tags