| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Proxy |
|
| 1.0;1 |
| 1 | /* | |
| 2 | =================== DO NOT EDIT THIS FILE ==================== | |
| 3 | Generated by Modello 1.0.1 on 2009-09-09 03:05:33, | |
| 4 | any modifications will be overwritten. | |
| 5 | ============================================================== | |
| 6 | */ | |
| 7 | ||
| 8 | package org.apache.maven.settings; | |
| 9 | ||
| 10 | /** | |
| 11 | * | |
| 12 | * | |
| 13 | * The <code><proxy></code> element contains | |
| 14 | * informations required to a proxy settings. | |
| 15 | * | |
| 16 | * | |
| 17 | * @version $Revision$ $Date$ | |
| 18 | */ | |
| 19 | 2 | public class Proxy |
| 20 | extends IdentifiableBase | |
| 21 | implements java.io.Serializable | |
| 22 | { | |
| 23 | ||
| 24 | //--------------------------/ | |
| 25 | //- Class/Member Variables -/ | |
| 26 | //--------------------------/ | |
| 27 | ||
| 28 | /** | |
| 29 | * | |
| 30 | * | |
| 31 | * Whether this proxy configuration is the active | |
| 32 | * one. | |
| 33 | * | |
| 34 | * | |
| 35 | */ | |
| 36 | 2 | private boolean active = true; |
| 37 | ||
| 38 | /** | |
| 39 | * | |
| 40 | * | |
| 41 | * The proxy protocol. | |
| 42 | * | |
| 43 | * | |
| 44 | */ | |
| 45 | 2 | private String protocol = "http"; |
| 46 | ||
| 47 | /** | |
| 48 | * | |
| 49 | * | |
| 50 | * The proxy user. | |
| 51 | * | |
| 52 | * | |
| 53 | */ | |
| 54 | private String username; | |
| 55 | ||
| 56 | /** | |
| 57 | * | |
| 58 | * | |
| 59 | * The proxy password. | |
| 60 | * | |
| 61 | * | |
| 62 | */ | |
| 63 | private String password; | |
| 64 | ||
| 65 | /** | |
| 66 | * | |
| 67 | * | |
| 68 | * The proxy port. | |
| 69 | * | |
| 70 | * | |
| 71 | */ | |
| 72 | 2 | private int port = 8080; |
| 73 | ||
| 74 | /** | |
| 75 | * | |
| 76 | * | |
| 77 | * The proxy host. | |
| 78 | * | |
| 79 | * | |
| 80 | */ | |
| 81 | private String host; | |
| 82 | ||
| 83 | /** | |
| 84 | * | |
| 85 | * | |
| 86 | * The list of non-proxied hosts (delimited by |). | |
| 87 | * | |
| 88 | * | |
| 89 | */ | |
| 90 | private String nonProxyHosts; | |
| 91 | ||
| 92 | ||
| 93 | //-----------/ | |
| 94 | //- Methods -/ | |
| 95 | //-----------/ | |
| 96 | ||
| 97 | /** | |
| 98 | * Get the proxy host. | |
| 99 | * | |
| 100 | * @return String | |
| 101 | */ | |
| 102 | public String getHost() | |
| 103 | { | |
| 104 | 0 | return this.host; |
| 105 | } //-- String getHost() | |
| 106 | ||
| 107 | /** | |
| 108 | * Get the list of non-proxied hosts (delimited by |). | |
| 109 | * | |
| 110 | * @return String | |
| 111 | */ | |
| 112 | public String getNonProxyHosts() | |
| 113 | { | |
| 114 | 0 | return this.nonProxyHosts; |
| 115 | } //-- String getNonProxyHosts() | |
| 116 | ||
| 117 | /** | |
| 118 | * Get the proxy password. | |
| 119 | * | |
| 120 | * @return String | |
| 121 | */ | |
| 122 | public String getPassword() | |
| 123 | { | |
| 124 | 0 | return this.password; |
| 125 | } //-- String getPassword() | |
| 126 | ||
| 127 | /** | |
| 128 | * Get the proxy port. | |
| 129 | * | |
| 130 | * @return int | |
| 131 | */ | |
| 132 | public int getPort() | |
| 133 | { | |
| 134 | 0 | return this.port; |
| 135 | } //-- int getPort() | |
| 136 | ||
| 137 | /** | |
| 138 | * Get the proxy protocol. | |
| 139 | * | |
| 140 | * @return String | |
| 141 | */ | |
| 142 | public String getProtocol() | |
| 143 | { | |
| 144 | 0 | return this.protocol; |
| 145 | } //-- String getProtocol() | |
| 146 | ||
| 147 | /** | |
| 148 | * Get the proxy user. | |
| 149 | * | |
| 150 | * @return String | |
| 151 | */ | |
| 152 | public String getUsername() | |
| 153 | { | |
| 154 | 0 | return this.username; |
| 155 | } //-- String getUsername() | |
| 156 | ||
| 157 | /** | |
| 158 | * Get whether this proxy configuration is the active one. | |
| 159 | * | |
| 160 | * @return boolean | |
| 161 | */ | |
| 162 | public boolean isActive() | |
| 163 | { | |
| 164 | 2 | return this.active; |
| 165 | } //-- boolean isActive() | |
| 166 | ||
| 167 | /** | |
| 168 | * Set whether this proxy configuration is the active one. | |
| 169 | * | |
| 170 | * @param active | |
| 171 | */ | |
| 172 | public void setActive( boolean active ) | |
| 173 | { | |
| 174 | 2 | this.active = active; |
| 175 | 2 | } //-- void setActive( boolean ) |
| 176 | ||
| 177 | /** | |
| 178 | * Set the proxy host. | |
| 179 | * | |
| 180 | * @param host | |
| 181 | */ | |
| 182 | public void setHost( String host ) | |
| 183 | { | |
| 184 | 2 | this.host = host; |
| 185 | 2 | } //-- void setHost( String ) |
| 186 | ||
| 187 | /** | |
| 188 | * Set the list of non-proxied hosts (delimited by |). | |
| 189 | * | |
| 190 | * @param nonProxyHosts | |
| 191 | */ | |
| 192 | public void setNonProxyHosts( String nonProxyHosts ) | |
| 193 | { | |
| 194 | 2 | this.nonProxyHosts = nonProxyHosts; |
| 195 | 2 | } //-- void setNonProxyHosts( String ) |
| 196 | ||
| 197 | /** | |
| 198 | * Set the proxy password. | |
| 199 | * | |
| 200 | * @param password | |
| 201 | */ | |
| 202 | public void setPassword( String password ) | |
| 203 | { | |
| 204 | 2 | this.password = password; |
| 205 | 2 | } //-- void setPassword( String ) |
| 206 | ||
| 207 | /** | |
| 208 | * Set the proxy port. | |
| 209 | * | |
| 210 | * @param port | |
| 211 | */ | |
| 212 | public void setPort( int port ) | |
| 213 | { | |
| 214 | 2 | this.port = port; |
| 215 | 2 | } //-- void setPort( int ) |
| 216 | ||
| 217 | /** | |
| 218 | * Set the proxy protocol. | |
| 219 | * | |
| 220 | * @param protocol | |
| 221 | */ | |
| 222 | public void setProtocol( String protocol ) | |
| 223 | { | |
| 224 | 2 | this.protocol = protocol; |
| 225 | 2 | } //-- void setProtocol( String ) |
| 226 | ||
| 227 | /** | |
| 228 | * Set the proxy user. | |
| 229 | * | |
| 230 | * @param username | |
| 231 | */ | |
| 232 | public void setUsername( String username ) | |
| 233 | { | |
| 234 | 2 | this.username = username; |
| 235 | 2 | } //-- void setUsername( String ) |
| 236 | ||
| 237 | ||
| 238 | } |