View Javadoc

1   package org.apache.continuum.configuration;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  
23  import org.apache.commons.lang.builder.ReflectionToStringBuilder;
24  
25  /**
26   * @author <a href="mailto:olamy@apache.org">olamy</a>
27   * @version $Id: ProxyConfiguration.java 1372260 2012-08-13 04:29:09Z brett $
28   * @since 24 juin 2008
29   */
30  public class ProxyConfiguration
31  {
32      private String proxyHost;
33  
34      private int proxyPort;
35  
36      private String proxyUser;
37  
38      private String proxyPassword;
39  
40      public ProxyConfiguration()
41      {
42          // nothing here
43      }
44  
45      public ProxyConfiguration( String proxyHost, String proxyPassword, int proxyPort, String proxyUser )
46      {
47          super();
48          this.proxyHost = proxyHost;
49          this.proxyPassword = proxyPassword;
50          this.proxyPort = proxyPort;
51          this.proxyUser = proxyUser;
52      }
53  
54      public String getProxyHost()
55      {
56          return proxyHost;
57      }
58  
59      public void setProxyHost( String proxyHost )
60      {
61          this.proxyHost = proxyHost;
62      }
63  
64      public int getProxyPort()
65      {
66          return proxyPort;
67      }
68  
69      public void setProxyPort( int proxyPort )
70      {
71          this.proxyPort = proxyPort;
72      }
73  
74      public String getProxyUser()
75      {
76          return proxyUser;
77      }
78  
79      public void setProxyUser( String proxyUser )
80      {
81          this.proxyUser = proxyUser;
82      }
83  
84      public String getProxyPassword()
85      {
86          return proxyPassword;
87      }
88  
89      public void setProxyPassword( String proxyPassword )
90      {
91          this.proxyPassword = proxyPassword;
92      }
93  
94      @Override
95      public String toString()
96      {
97          return ReflectionToStringBuilder.toString( this );
98      }
99  
100 }