KickJava   Java API By Example, From Geeks To Geeks.

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


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.vsftp.VsftpRepository;
9
10 /**
11  * This resolver uses SecureCRT vsft to access an sftp server.
12  *
13  * It supports listing and publishing.
14  *
15  * The server host should absolutely be set using setHost, so does the username.
16  *
17  */

18 public class VsftpResolver extends RepositoryResolver {
19     public VsftpResolver() {
20         setRepository(new VsftpRepository());
21     }
22     public String JavaDoc getTypeName() {
23         return "vsftp";
24     }
25     public VsftpRepository getVsftpRepository() {
26         return (VsftpRepository) getRepository();
27     }
28     public void disconnect() {
29         getVsftpRepository().disconnect();
30     }
31     public String JavaDoc getAuthentication() {
32         return getVsftpRepository().getAuthentication();
33     }
34     public String JavaDoc getHost() {
35         return getVsftpRepository().getHost();
36     }
37     public String JavaDoc getUsername() {
38         return getVsftpRepository().getUsername();
39     }
40     public void setAuthentication(String JavaDoc authentication) {
41         getVsftpRepository().setAuthentication(authentication);
42     }
43     public void setHost(String JavaDoc host) {
44         getVsftpRepository().setHost(host);
45     }
46     public void setUsername(String JavaDoc username) {
47         getVsftpRepository().setUsername(username);
48     }
49     public void setReuseConnection(long time) {
50         getVsftpRepository().setReuseConnection(time);
51     }
52     public void setReadTimeout(long readTimeout) {
53         getVsftpRepository().setReadTimeout(readTimeout);
54     }
55 }
56
Popular Tags