|
1 | 1 | /* |
2 | | - * Copyright 2006 the original author or authors. |
| 2 | + * Copyright 2002-2009 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
|
24 | 24 | import org.apache.commons.httpclient.Credentials; |
25 | 25 | import org.apache.commons.httpclient.HostConfiguration; |
26 | 26 | import org.apache.commons.httpclient.HttpClient; |
27 | | -import org.apache.commons.httpclient.HttpConnectionManager; |
28 | 27 | import org.apache.commons.httpclient.HttpURL; |
29 | 28 | import org.apache.commons.httpclient.HttpsURL; |
30 | 29 | import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager; |
|
34 | 33 | import org.apache.commons.httpclient.auth.AuthScope; |
35 | 34 | import org.apache.commons.httpclient.methods.PostMethod; |
36 | 35 |
|
37 | | -import org.springframework.beans.factory.DisposableBean; |
38 | 36 | import org.springframework.beans.factory.InitializingBean; |
39 | 37 | import org.springframework.util.Assert; |
40 | 38 | import org.springframework.ws.transport.WebServiceConnection; |
|
53 | 51 | * @see #setCredentials(Credentials) |
54 | 52 | * @since 1.0.0 |
55 | 53 | */ |
56 | | -public class CommonsHttpMessageSender extends AbstractHttpWebServiceMessageSender |
57 | | - implements InitializingBean, DisposableBean { |
| 54 | +public class CommonsHttpMessageSender extends AbstractHttpWebServiceMessageSender implements InitializingBean { |
58 | 55 |
|
59 | 56 | private static final int DEFAULT_CONNECTION_TIMEOUT_MILLISECONDS = (60 * 1000); |
60 | 57 |
|
@@ -217,13 +214,6 @@ public void afterPropertiesSet() throws Exception { |
217 | 214 | } |
218 | 215 | } |
219 | 216 |
|
220 | | - public void destroy() throws Exception { |
221 | | - HttpConnectionManager connectionManager = getHttpClient().getHttpConnectionManager(); |
222 | | - if (connectionManager instanceof MultiThreadedHttpConnectionManager) { |
223 | | - ((MultiThreadedHttpConnectionManager) connectionManager).shutdown(); |
224 | | - } |
225 | | - } |
226 | | - |
227 | 217 | public WebServiceConnection createConnection(URI uri) throws IOException { |
228 | 218 | PostMethod postMethod = new PostMethod(uri.toString()); |
229 | 219 | if (isAcceptGzipEncoding()) { |
|
0 commit comments