|
17 | 17 | package com.eviware.soapui.impl.wsdl.support.http;
|
18 | 18 |
|
19 | 19 | import com.eviware.soapui.SoapUI;
|
20 |
| -import com.eviware.soapui.SoapUISystemProperties; |
21 | 20 | import com.eviware.soapui.impl.support.SSLUtils;
|
22 | 21 | import com.eviware.soapui.impl.wsdl.submit.transports.http.ExtendedHttpMethod;
|
23 | 22 | import com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport;
|
|
31 | 30 | import com.eviware.soapui.settings.SSLSettings;
|
32 | 31 | import com.eviware.soapui.support.MessageSupport;
|
33 | 32 | import com.eviware.soapui.support.StringUtils;
|
34 |
| -import com.smartbear.soapui.core.Logging; |
35 | 33 | import org.apache.commons.lang.NullArgumentException;
|
36 |
| -import org.apache.commons.ssl.KeyMaterial; |
37 | 34 | import org.apache.http.Header;
|
38 | 35 | import org.apache.http.HttpClientConnection;
|
39 | 36 | import org.apache.http.HttpException;
|
|
56 | 53 | import org.apache.http.client.config.CookieSpecs;
|
57 | 54 | import org.apache.http.client.config.RequestConfig;
|
58 | 55 | import org.apache.http.client.methods.CloseableHttpResponse;
|
| 56 | +import org.apache.http.client.methods.HttpRequestWrapper; |
59 | 57 | import org.apache.http.client.methods.RequestBuilder;
|
60 | 58 | import org.apache.http.client.params.ClientPNames;
|
61 | 59 | import org.apache.http.client.protocol.ClientContext;
|
|
76 | 74 | import org.apache.http.conn.UnsupportedSchemeException;
|
77 | 75 | import org.apache.http.conn.params.ConnRoutePNames;
|
78 | 76 | import org.apache.http.conn.routing.HttpRoutePlanner;
|
79 |
| -import org.apache.http.conn.scheme.PlainSocketFactory; |
80 |
| -import org.apache.http.conn.scheme.Scheme; |
81 |
| -import org.apache.http.conn.scheme.SchemeRegistry; |
82 | 77 | import org.apache.http.conn.socket.ConnectionSocketFactory;
|
83 | 78 | import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
|
84 | 79 | import org.apache.http.conn.util.PublicSuffixMatcher;
|
|
88 | 83 | import org.apache.http.impl.client.BasicCookieStore;
|
89 | 84 | import org.apache.http.impl.client.CloseableHttpClient;
|
90 | 85 | import org.apache.http.impl.client.CookieSpecRegistries;
|
91 |
| -import org.apache.http.impl.client.DefaultHttpClient; |
92 | 86 | import org.apache.http.impl.client.HttpClientBuilder;
|
93 | 87 | import org.apache.http.impl.client.RequestWrapper;
|
94 | 88 | import org.apache.http.impl.conn.DefaultRoutePlanner;
|
|
110 | 104 | import org.apache.logging.log4j.LogManager;
|
111 | 105 | import org.apache.logging.log4j.Logger;
|
112 | 106 |
|
113 |
| -import javax.net.ssl.SSLSession; |
114 |
| -import java.io.File; |
115 | 107 | import java.io.IOException;
|
116 | 108 | import java.net.InetAddress;
|
117 | 109 | import java.net.ProxySelector;
|
@@ -487,8 +479,8 @@ protected HttpResponse doReceiveResponse(final HttpRequest request, final HttpCl
|
487 | 479 |
|
488 | 480 | HttpRequest original = request;
|
489 | 481 |
|
490 |
| - if (original instanceof RequestWrapper) { |
491 |
| - RequestWrapper w = (RequestWrapper) request; |
| 482 | + if (original instanceof HttpRequestWrapper) { |
| 483 | + HttpRequestWrapper w = (HttpRequestWrapper) request; |
492 | 484 | original = w.getOriginal();
|
493 | 485 | }
|
494 | 486 |
|
@@ -524,11 +516,10 @@ protected HttpResponse doReceiveResponse(final HttpRequest request, final HttpCl
|
524 | 516 |
|
525 | 517 | } // while intermediate response
|
526 | 518 |
|
527 |
| - /* TODO: |
528 | 519 | if (original instanceof ExtendedHttpMethod) {
|
529 | 520 | ExtendedHttpMethod extendedHttpMethod = (ExtendedHttpMethod) original;
|
530 |
| - extendedHttpMethod.afterReadResponse(((SoapUIMultiThreadedHttpConnectionManager.SoapUIBasicPooledConnAdapter) conn).getSSLSession()); |
531 |
| - }*/ |
| 521 | + extendedHttpMethod.afterReadResponse(((ManagedHttpClientConnection) conn).getSSLSession()); |
| 522 | + } |
532 | 523 |
|
533 | 524 | return response;
|
534 | 525 | }
|
|
0 commit comments