View Javadoc

1   /*
2    * Copyright 2001-2004 The Apache Software Foundation.
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.jdiagnose.library;
17  
18  /***
19   * Holder class for proxy information.
20   * 
21   * @author jmccrindle
22   */
23  public class HttpProxyConfig {
24  
25      private String proxyHost = null;
26      private String proxyPort = null;
27      private String proxyUsername = null;
28      private String proxyPassword = null;
29  
30      /***
31       * @param proxyHost
32       * @param proxyPort
33       * @param proxyUsername
34       * @param proxyPassword
35       */
36      public HttpProxyConfig(String proxyHost, String proxyPort,
37              String proxyUsername, String proxyPassword) {
38          super();
39          this.proxyHost = proxyHost;
40          this.proxyPort = proxyPort;
41          this.proxyUsername = proxyUsername;
42          this.proxyPassword = proxyPassword;
43      }
44      
45      public HttpProxyConfig() {
46          super();
47      }
48  
49      /***
50       * @return
51       */
52      public String getProxyHost() {
53          return proxyHost;
54      }
55  
56      /***
57       * @return
58       */
59      public String getProxyPassword() {
60          return proxyPassword;
61      }
62  
63      /***
64       * @return
65       */
66      public String getProxyPort() {
67          return proxyPort;
68      }
69  
70      /***
71       * @return
72       */
73      public String getProxyUsername() {
74          return proxyUsername;
75      }
76  
77      /***
78       * @param string
79       */
80      public void setProxyHost(String string) {
81          proxyHost = string;
82      }
83  
84      /***
85       * @param string
86       */
87      public void setProxyPassword(String string) {
88          proxyPassword = string;
89      }
90  
91      /***
92       * @param string
93       */
94      public void setProxyPort(String string) {
95          proxyPort = string;
96      }
97  
98      /***
99       * @param string
100      */
101     public void setProxyUsername(String string) {
102         proxyUsername = string;
103     }
104 
105 }