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 | |
24 | import org.apache.commons.lang.builder.ReflectionToStringBuilder; |
25 | |
26 | /** |
27 | * @author <a href="mailto:olamy@apache.org">olamy</a> |
28 | * @version $Id: ProxyConfiguration.java 729143 2008-12-23 22:21:06Z olamy $ |
29 | * @since 24 juin 2008 |
30 | */ |
31 | public class ProxyConfiguration |
32 | { |
33 | private String proxyHost; |
34 | |
35 | private int proxyPort; |
36 | |
37 | private String proxyUser; |
38 | |
39 | private String proxyPassword; |
40 | |
41 | public ProxyConfiguration() |
42 | { |
43 | // nothing here |
44 | } |
45 | |
46 | public ProxyConfiguration( String proxyHost, String proxyPassword, int proxyPort, String proxyUser ) |
47 | { |
48 | super(); |
49 | this.proxyHost = proxyHost; |
50 | this.proxyPassword = proxyPassword; |
51 | this.proxyPort = proxyPort; |
52 | this.proxyUser = proxyUser; |
53 | } |
54 | |
55 | public String getProxyHost() |
56 | { |
57 | return proxyHost; |
58 | } |
59 | |
60 | public void setProxyHost( String proxyHost ) |
61 | { |
62 | this.proxyHost = proxyHost; |
63 | } |
64 | |
65 | public int getProxyPort() |
66 | { |
67 | return proxyPort; |
68 | } |
69 | |
70 | public void setProxyPort( int proxyPort ) |
71 | { |
72 | this.proxyPort = proxyPort; |
73 | } |
74 | |
75 | public String getProxyUser() |
76 | { |
77 | return proxyUser; |
78 | } |
79 | |
80 | public void setProxyUser( String proxyUser ) |
81 | { |
82 | this.proxyUser = proxyUser; |
83 | } |
84 | |
85 | public String getProxyPassword() |
86 | { |
87 | return proxyPassword; |
88 | } |
89 | |
90 | public void setProxyPassword( String proxyPassword ) |
91 | { |
92 | this.proxyPassword = proxyPassword; |
93 | } |
94 | |
95 | @Override |
96 | public String toString() |
97 | { |
98 | return ReflectionToStringBuilder.toString( this ); |
99 | } |
100 | |
101 | } |