src/java.base/share/classes/sun/net/www/protocol/https/AbstractDelegateHttpsURLConnection.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
69 |
69 |
70 /** |
70 /** |
71 * Create a new HttpClient object, bypassing the cache of |
71 * Create a new HttpClient object, bypassing the cache of |
72 * HTTP client objects/connections. |
72 * HTTP client objects/connections. |
73 * |
73 * |
74 * Note: this method is changed from protected to public because |
|
75 * the com.sun.ssl.internal.www.protocol.https handler reuses this |
|
76 * class for its actual implemantation |
|
77 * |
|
78 * @param url the URL being accessed |
74 * @param url the URL being accessed |
79 */ |
75 */ |
80 public void setNewClient (URL url) |
76 public void setNewClient (URL url) |
81 throws IOException { |
77 throws IOException { |
82 setNewClient (url, false); |
78 setNewClient (url, false); |
83 } |
79 } |
84 |
80 |
85 /** |
81 /** |
86 * Obtain a HttpClient object. Use the cached copy if specified. |
82 * Obtain a HttpClient object. Use the cached copy if specified. |
87 * |
|
88 * Note: this method is changed from protected to public because |
|
89 * the com.sun.ssl.internal.www.protocol.https handler reuses this |
|
90 * class for its actual implemantation |
|
91 * |
83 * |
92 * @param url the URL being accessed |
84 * @param url the URL being accessed |
93 * @param useCache whether the cached connection should be used |
85 * @param useCache whether the cached connection should be used |
94 * if present |
86 * if present |
95 */ |
87 */ |
105 /** |
97 /** |
106 * Create a new HttpClient object, set up so that it uses |
98 * Create a new HttpClient object, set up so that it uses |
107 * per-instance proxying to the given HTTP proxy. This |
99 * per-instance proxying to the given HTTP proxy. This |
108 * bypasses the cache of HTTP client objects/connections. |
100 * bypasses the cache of HTTP client objects/connections. |
109 * |
101 * |
110 * Note: this method is changed from protected to public because |
|
111 * the com.sun.ssl.internal.www.protocol.https handler reuses this |
|
112 * class for its actual implemantation |
|
113 * |
|
114 * @param url the URL being accessed |
102 * @param url the URL being accessed |
115 * @param proxyHost the proxy host to use |
103 * @param proxyHost the proxy host to use |
116 * @param proxyPort the proxy port to use |
104 * @param proxyPort the proxy port to use |
117 */ |
105 */ |
118 public void setProxiedClient (URL url, String proxyHost, int proxyPort) |
106 public void setProxiedClient (URL url, String proxyHost, int proxyPort) |
122 |
110 |
123 /** |
111 /** |
124 * Obtain a HttpClient object, set up so that it uses per-instance |
112 * Obtain a HttpClient object, set up so that it uses per-instance |
125 * proxying to the given HTTP proxy. Use the cached copy of HTTP |
113 * proxying to the given HTTP proxy. Use the cached copy of HTTP |
126 * client objects/connections if specified. |
114 * client objects/connections if specified. |
127 * |
|
128 * Note: this method is changed from protected to public because |
|
129 * the com.sun.ssl.internal.www.protocol.https handler reuses this |
|
130 * class for its actual implemantation |
|
131 * |
115 * |
132 * @param url the URL being accessed |
116 * @param url the URL being accessed |
133 * @param proxyHost the proxy host to use |
117 * @param proxyHost the proxy host to use |
134 * @param proxyPort the proxy port to use |
118 * @param proxyPort the proxy port to use |
135 * @param useCache whether the cached connection should be used |
119 * @param useCache whether the cached connection should be used |