001 /* 002 =================== DO NOT EDIT THIS FILE ==================== 003 Generated by Modello 1.4.1 on 2012-01-20 18:15:43, 004 any modifications will be overwritten. 005 ============================================================== 006 */ 007 008 package org.apache.maven.settings; 009 010 /** 011 * 012 * 013 * The <code><proxy></code> element contains 014 * informations required to a proxy settings. 015 * 016 * 017 * @version $Revision$ $Date$ 018 */ 019 @SuppressWarnings( "all" ) 020 public class Proxy 021 extends IdentifiableBase 022 implements java.io.Serializable, java.lang.Cloneable 023 { 024 025 //--------------------------/ 026 //- Class/Member Variables -/ 027 //--------------------------/ 028 029 /** 030 * 031 * 032 * Whether this proxy configuration is the active 033 * one. 034 * 035 * 036 */ 037 private boolean active = true; 038 039 /** 040 * 041 * 042 * The proxy protocol. 043 * 044 * 045 */ 046 private String protocol = "http"; 047 048 /** 049 * 050 * 051 * The proxy user. 052 * 053 * 054 */ 055 private String username; 056 057 /** 058 * 059 * 060 * The proxy password. 061 * 062 * 063 */ 064 private String password; 065 066 /** 067 * 068 * 069 * The proxy port. 070 * 071 * 072 */ 073 private int port = 8080; 074 075 /** 076 * 077 * 078 * The proxy host. 079 * 080 * 081 */ 082 private String host; 083 084 /** 085 * 086 * 087 * The list of non-proxied hosts (delimited by |). 088 * 089 * 090 */ 091 private String nonProxyHosts; 092 093 094 //-----------/ 095 //- Methods -/ 096 //-----------/ 097 098 /** 099 * Method clone. 100 * 101 * @return Proxy 102 */ 103 public Proxy clone() 104 { 105 try 106 { 107 Proxy copy = (Proxy) super.clone(); 108 109 return copy; 110 } 111 catch ( java.lang.Exception ex ) 112 { 113 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() 114 + " does not support clone()" ).initCause( ex ); 115 } 116 } //-- Proxy clone() 117 118 /** 119 * Get the proxy host. 120 * 121 * @return String 122 */ 123 public String getHost() 124 { 125 return this.host; 126 } //-- String getHost() 127 128 /** 129 * Get the list of non-proxied hosts (delimited by |). 130 * 131 * @return String 132 */ 133 public String getNonProxyHosts() 134 { 135 return this.nonProxyHosts; 136 } //-- String getNonProxyHosts() 137 138 /** 139 * Get the proxy password. 140 * 141 * @return String 142 */ 143 public String getPassword() 144 { 145 return this.password; 146 } //-- String getPassword() 147 148 /** 149 * Get the proxy port. 150 * 151 * @return int 152 */ 153 public int getPort() 154 { 155 return this.port; 156 } //-- int getPort() 157 158 /** 159 * Get the proxy protocol. 160 * 161 * @return String 162 */ 163 public String getProtocol() 164 { 165 return this.protocol; 166 } //-- String getProtocol() 167 168 /** 169 * Get the proxy user. 170 * 171 * @return String 172 */ 173 public String getUsername() 174 { 175 return this.username; 176 } //-- String getUsername() 177 178 /** 179 * Get whether this proxy configuration is the active one. 180 * 181 * @return boolean 182 */ 183 public boolean isActive() 184 { 185 return this.active; 186 } //-- boolean isActive() 187 188 /** 189 * Set whether this proxy configuration is the active one. 190 * 191 * @param active 192 */ 193 public void setActive( boolean active ) 194 { 195 this.active = active; 196 } //-- void setActive( boolean ) 197 198 /** 199 * Set the proxy host. 200 * 201 * @param host 202 */ 203 public void setHost( String host ) 204 { 205 this.host = host; 206 } //-- void setHost( String ) 207 208 /** 209 * Set the list of non-proxied hosts (delimited by |). 210 * 211 * @param nonProxyHosts 212 */ 213 public void setNonProxyHosts( String nonProxyHosts ) 214 { 215 this.nonProxyHosts = nonProxyHosts; 216 } //-- void setNonProxyHosts( String ) 217 218 /** 219 * Set the proxy password. 220 * 221 * @param password 222 */ 223 public void setPassword( String password ) 224 { 225 this.password = password; 226 } //-- void setPassword( String ) 227 228 /** 229 * Set the proxy port. 230 * 231 * @param port 232 */ 233 public void setPort( int port ) 234 { 235 this.port = port; 236 } //-- void setPort( int ) 237 238 /** 239 * Set the proxy protocol. 240 * 241 * @param protocol 242 */ 243 public void setProtocol( String protocol ) 244 { 245 this.protocol = protocol; 246 } //-- void setProtocol( String ) 247 248 /** 249 * Set the proxy user. 250 * 251 * @param username 252 */ 253 public void setUsername( String username ) 254 { 255 this.username = username; 256 } //-- void setUsername( String ) 257 258 }