View Javadoc
1   package fr.paris.lutece.util.httpaccess;
2   
3   
4   /**
5    * The Class HttpClientConfiguration.
6    */
7   public class HttpClientConfiguration {
8   
9   
10      /** The _str proxy host. */
11      private String _strProxyHost;
12  
13      /** The _str proxy port. */
14      private String _strProxyPort;
15  
16      /** The _str proxy user name. */
17      private String _strProxyUserName;
18  
19      /** The _str proxy password. */
20      private String _strProxyPassword;
21  
22      /** The _str host name. */
23      private String _strHostName;
24  
25      /** The _str domain name. */
26      private String _strDomainName;
27  
28      /** The _str realm. */
29      private String _strRealm;
30  
31      /** The _str no proxy for. */
32      private String _strNoProxyFor;
33  
34      /** The _str content charset. */
35      private String _strContentCharset;
36  
37      /** The _str element charset. */
38      private String _strElementCharset;
39  
40      /** The _str socket timeout. */
41      private Integer _nSocketTimeout;
42  
43      /** The _str connection timeout. */
44      private Integer _nConnectionTimeout;
45  
46      /** The _b connection pool enabled. */
47      private boolean _bConnectionPoolEnabled;
48  
49      /** The _str connection pool max total connection. */
50      private Integer _nConnectionPoolMaxTotalConnection;
51  
52      /** The _str connection pool max connection per host. */
53      private Integer _nConnectionPoolMaxConnectionPerHost;
54  
55  	/**
56  	 * Gets the proxy host.
57  	 *
58  	 * @return the proxy host
59  	 */
60  	public String getProxyHost() {
61  		return _strProxyHost;
62  	}
63  
64  	/**
65  	 * Sets the proxy host.
66  	 *
67  	 * @param _strProxyHost the new proxy host
68  	 */
69  	public void setProxyHost(String _strProxyHost) {
70  		this._strProxyHost = _strProxyHost;
71  	}
72  
73  	/**
74  	 * Gets the proxy port.// TODO: Auto-generated Javadoc
75  	 *
76  	 * @return the proxy port
77  	 */
78  	public String getProxyPort() {
79  		return _strProxyPort;
80  	}
81  
82  	/**
83  	 * Sets the proxy port.
84  	 *
85  	 * @param _strProxyPort the new proxy port
86  	 */
87  	public void setProxyPort(String _strProxyPort) {
88  		this._strProxyPort = _strProxyPort;
89  	}
90  
91  	/**
92  	 * Gets the proxy user name.
93  	 *
94  	 * @return the proxy user name
95  	 */
96  	public String getProxyUserName() {
97  		return _strProxyUserName;
98  	}
99  
100 	/**
101 	 * Sets the proxy user name.
102 	 *
103 	 * @param _strProxyUserName the new proxy user name
104 	 */
105 	public void setProxyUserName(String _strProxyUserName) {
106 		this._strProxyUserName = _strProxyUserName;
107 	}
108 
109 	/**
110 	 * Gets the proxy password.
111 	 *
112 	 * @return the proxy password
113 	 */
114 	public String getProxyPassword() {
115 		return _strProxyPassword;// TODO: Auto-generated Javadoc
116 	}
117 
118 	/**
119 	 * Sets the proxy password.
120 	 *
121 	 * @param _strProxyPassword the new proxy password
122 	 */
123 	public void setProxyPassword(String _strProxyPassword) {
124 		this._strProxyPassword = _strProxyPassword;
125 	}
126 
127 	/**
128 	 * Gets the host name.
129 	 *
130 	 * @return the host name
131 	 */
132 	public String getHostName() {
133 		return _strHostName;
134 	}
135 
136 	/**
137 	 * Sets the host name.
138 	 *
139 	 * @param _strHostName the new host name
140 	 */
141 	public void setHostName(String _strHostName) {
142 		this._strHostName = _strHostName;
143 	}
144 
145 	/**
146 	 * Gets the domain name.
147 	 *
148 	 * @return the domain name
149 	 */
150 	public String getDomainName() {
151 		return _strDomainName;
152 	}
153 
154 	/**
155 	 * Sets the domain name.
156 	 *
157 	 * @param _strDomainName the new domain name
158 	 */
159 	public void setDomainName(String _strDomainName) {
160 		this._strDomainName = _strDomainName;
161 	}
162 
163 	/**
164 	 * Gets the realm.
165 	 *
166 	 * @return the realm
167 	 */
168 	public String getRealm() {
169 		return _strRealm;
170 	}
171 
172 	/**
173 	 * Sets the realm.
174 	 *
175 	 * @param _strRealm the new realm
176 	 */
177 	public void setRealm(String _strRealm) {
178 		this._strRealm = _strRealm;
179 	}
180 
181 	/**
182 	 * Gets the no proxy for.
183 	 *
184 	 * @return the no proxy for
185 	 */
186 	public String getNoProxyFor() {
187 		return _strNoProxyFor;
188 	}
189 
190 	/**
191 	 * Sets the no proxy for.
192 	 *
193 	 * @param _strNoProxyFor the new no proxy for
194 	 */
195 	public void setNoProxyFor(String _strNoProxyFor) {
196 		this._strNoProxyFor = _strNoProxyFor;
197 	}
198 
199 	/**
200 	 * Gets the content charset.
201 	 *
202 	 * @return the content charset
203 	 */
204 	public String getContentCharset() {
205 		return _strContentCharset;
206 	}
207 
208 	/**
209 	 * Sets the content charset.
210 	 *
211 	 * @param _strContentCharset the new content charset
212 	 */
213 	public void setContentCharset(String _strContentCharset) {
214 		this._strContentCharset = _strContentCharset;
215 	}
216 
217 	/**
218 	 * Gets the element charset.
219 	 *
220 	 * @return the element charset
221 	 */
222 	public String getElementCharset() {
223 		return _strElementCharset;
224 	}
225 
226 	/**
227 	 * Sets the element charset.
228 	 *
229 	 * @param _strElementCharset the new element charset
230 	 */
231 	public void setElementCharset(String _strElementCharset) {
232 		this._strElementCharset = _strElementCharset;
233 	}
234 
235 	/**
236 	 * Gets the socket timeout.
237 	 *
238 	 * @return the socket timeout
239 	 */
240 	public Integer getSocketTimeout() {
241 		return _nSocketTimeout;
242 	}
243 
244 	/**
245 	 * Sets the socket timeout.
246 	 *
247 	 * @param nSocketTimeout the new socket timeout
248 	 */
249 	public void setSocketTimeout(Integer nSocketTimeout) {
250 		this._nSocketTimeout = nSocketTimeout;
251 	}
252 
253 	/**
254 	 * Gets the connection timeout.
255 	 *
256 	 * @return the connection timeout
257 	 */
258 	public Integer getConnectionTimeout() {
259 		return _nConnectionTimeout;
260 	}
261 
262 	/**
263 	 * Sets the connection timeout.
264 	 *
265 	 * @param nConnectionTimeout the new connection timeout
266 	 */
267 	public void setConnectionTimeout(Integer nConnectionTimeout) {
268 		this._nConnectionTimeout = nConnectionTimeout;
269 	}
270 
271 	/**
272 	 * Checks if is connection pool enabled.
273 	 *
274 	 * @return true, if is connection pool enabled
275 	 */
276 	public boolean isConnectionPoolEnabled() {
277 		return _bConnectionPoolEnabled;
278 	}
279 
280 	/**
281 	 * Sets the connection pool enabled.
282 	 *
283 	 * @param _bConnectionPoolEnabled the new connection pool enabled
284 	 */
285 	public void setConnectionPoolEnabled(boolean _bConnectionPoolEnabled) {
286 		this._bConnectionPoolEnabled = _bConnectionPoolEnabled;
287 	}
288 
289 	/**
290 	 * Gets the connection pool max total connection.
291 	 *
292 	 * @return the connection pool max total connection
293 	 */
294 	public Integer getConnectionPoolMaxTotalConnection() {
295 		return _nConnectionPoolMaxTotalConnection;
296 	}
297 
298 	/**
299 	 * Sets the connection pool max total connection.
300 	 *
301 	 * @param nConnectionPoolMaxTotalConnection the new connection pool max total connection
302 	 */
303 	public void setConnectionPoolMaxTotalConnection(Integer nConnectionPoolMaxTotalConnection) {
304 		this._nConnectionPoolMaxTotalConnection = nConnectionPoolMaxTotalConnection;
305 	}
306 
307 	/**
308 	 * Gets the connection pool max connection per host.
309 	 *
310 	 * @return the connection pool max connection per host
311 	 */
312 	public Integer getConnectionPoolMaxConnectionPerHost() {
313 		return _nConnectionPoolMaxConnectionPerHost;
314 	}
315 
316 	/**
317 	 * Sets the connection pool max connection per host.
318 	 *
319 	 * @param nConnectionPoolMaxConnectionPerHost the new connection pool max connection per host
320 	 */
321 	public void setConnectionPoolMaxConnectionPerHost(Integer nConnectionPoolMaxConnectionPerHost) {
322 		this._nConnectionPoolMaxConnectionPerHost = nConnectionPoolMaxConnectionPerHost;
323 	}
324 
325 }