1 package org.apache.maven.artifact.ant;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 public class RemoteRepository
29 extends Repository
30 {
31 private String url;
32
33 private Authentication authentication;
34
35 private Proxy proxy;
36
37 private RepositoryPolicy snapshots;
38
39 private RepositoryPolicy releases;
40
41 public String getUrl()
42 {
43 return ( (RemoteRepository) getInstance() ).url;
44 }
45
46 public void setUrl( String url )
47 {
48 this.url = url;
49 }
50
51 public Authentication getAuthentication()
52 {
53 return ( (RemoteRepository) getInstance() ).authentication;
54 }
55
56 public void addAuthentication( Authentication authentication )
57 {
58 this.authentication = authentication;
59 }
60
61 public void addProxy( Proxy proxy )
62 {
63 this.proxy = proxy;
64 }
65
66 public Proxy getProxy()
67 {
68 return ( (RemoteRepository) getInstance() ).proxy;
69 }
70
71 public RepositoryPolicy getSnapshots()
72 {
73 return ( (RemoteRepository) getInstance() ).snapshots;
74 }
75
76 public void addSnapshots( RepositoryPolicy snapshots )
77 {
78 this.snapshots = snapshots;
79 }
80
81 public RepositoryPolicy getReleases()
82 {
83 return ( (RemoteRepository) getInstance() ).releases;
84 }
85
86 public void addReleases( RepositoryPolicy releases )
87 {
88 this.releases = releases;
89 }
90
91 protected String getDefaultId()
92 {
93 return getUrl();
94 }
95
96 }