1
2
3
4 package org.apache.maven.settings;
5
6 import java.io.Serializable;
7 import java.util.AbstractList;
8 import java.util.Collections;
9 import java.util.HashMap;
10 import java.util.List;
11 import java.util.Map;
12 import java.util.stream.Collectors;
13 import java.util.stream.Stream;
14 import org.apache.maven.api.annotations.Generated;
15 import org.apache.maven.api.annotations.Nonnull;
16
17 @Generated
18 public class Proxy
19 extends IdentifiableBase
20 implements Serializable, Cloneable
21 {
22
23
24 public Proxy()
25 {
26 this( org.apache.maven.api.settings.Proxy.newInstance() );
27 }
28
29 public Proxy( org.apache.maven.api.settings.Proxy delegate )
30 {
31 super( delegate );
32 }
33
34 public Proxy clone()
35 {
36 return new Proxy( getDelegate() );
37 }
38
39 @Override
40 public org.apache.maven.api.settings.Proxy getDelegate()
41 {
42 return ( org.apache.maven.api.settings.Proxy ) delegate;
43 }
44
45 public boolean isActive()
46 {
47 return getDelegate().isActive();
48 }
49
50 public void setActive( boolean active )
51 {
52 delegate = getDelegate().withActive( active );
53 }
54
55 public String getProtocol()
56 {
57 return getDelegate().getProtocol();
58 }
59
60 public void setProtocol( String protocol )
61 {
62 delegate = getDelegate().withProtocol( protocol );
63 }
64
65 public String getUsername()
66 {
67 return getDelegate().getUsername();
68 }
69
70 public void setUsername( String username )
71 {
72 delegate = getDelegate().withUsername( username );
73 }
74
75 public String getPassword()
76 {
77 return getDelegate().getPassword();
78 }
79
80 public void setPassword( String password )
81 {
82 delegate = getDelegate().withPassword( password );
83 }
84
85 public int getPort()
86 {
87 return getDelegate().getPort();
88 }
89
90 public void setPort( int port )
91 {
92 delegate = getDelegate().withPort( port );
93 }
94
95 public String getHost()
96 {
97 return getDelegate().getHost();
98 }
99
100 public void setHost( String host )
101 {
102 delegate = getDelegate().withHost( host );
103 }
104
105 public String getNonProxyHosts()
106 {
107 return getDelegate().getNonProxyHosts();
108 }
109
110 public void setNonProxyHosts( String nonProxyHosts )
111 {
112 delegate = getDelegate().withNonProxyHosts( nonProxyHosts );
113 }
114
115 public static List<org.apache.maven.api.settings.Proxy> proxyToApiV4( List<Proxy> list )
116 {
117 return list != null ? new WrapperList<>( list, Proxy::getDelegate, Proxy::new ) : null;
118 }
119
120 public static List<Proxy> proxyToApiV3( List<org.apache.maven.api.settings.Proxy> list )
121 {
122 return list != null ? new WrapperList<>( list, Proxy::new, Proxy::getDelegate ) : null;
123 }
124
125 }