1 /**
2 * Copyright (C) 2012 White Source Ltd.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.whitesource.teamcity.server;
17
18 /**
19 * POJO for storing proxy settings.
20 *
21 * @author Edo.Shor
22 */
23 public class ProxySettings {
24
25 /* --- Members --- */
26
27 private String host;
28
29 private int port;
30
31 private String username;
32
33 private String password;
34
35 /* --- Constructors --- */
36
37 /**
38 * Default constructor
39 */
40 public ProxySettings() {
41 port = -1;
42 }
43
44 /* --- Getters / Setters --- */
45
46 public String getHost() {
47 return host;
48 }
49
50 public void setHost(String host) {
51 this.host = host;
52 }
53
54 public int getPort() {
55 return port;
56 }
57
58 public void setPort(int port) {
59 this.port = port;
60 }
61
62 public String getUsername() {
63 return username;
64 }
65
66 public void setUsername(String username) {
67 this.username = username;
68 }
69
70 public String getPassword() {
71 return password;
72 }
73
74 public void setPassword(String password) {
75 this.password = password;
76 }
77 }