equal
deleted
inserted
replaced
244 agent = agent + " Java/"+version; |
244 agent = agent + " Java/"+version; |
245 } |
245 } |
246 userAgent = agent; |
246 userAgent = agent; |
247 |
247 |
248 // A set of net properties to control the use of authentication schemes |
248 // A set of net properties to control the use of authentication schemes |
249 // when proxing/tunneling. |
249 // when proxying/tunneling. |
250 String p = getNetProperty("jdk.http.auth.tunneling.disabledSchemes"); |
250 String p = getNetProperty("jdk.http.auth.tunneling.disabledSchemes"); |
251 disabledTunnelingSchemes = schemesListToSet(p); |
251 disabledTunnelingSchemes = schemesListToSet(p); |
252 p = getNetProperty("jdk.http.auth.proxying.disabledSchemes"); |
252 p = getNetProperty("jdk.http.auth.proxying.disabledSchemes"); |
253 disabledProxyingSchemes = schemesListToSet(p); |
253 disabledProxyingSchemes = schemesListToSet(p); |
254 |
254 |
3588 IOException errorExcp; |
3588 IOException errorExcp; |
3589 |
3589 |
3590 /** |
3590 /** |
3591 * expectedLength == -1 if the stream is chunked |
3591 * expectedLength == -1 if the stream is chunked |
3592 * expectedLength > 0 if the stream is fixed content-length |
3592 * expectedLength > 0 if the stream is fixed content-length |
3593 * In the 2nd case, we make sure the expected number of |
3593 * In the 2nd case, we make sure the expected number |
3594 * of bytes are actually written |
3594 * of bytes are actually written |
3595 */ |
3595 */ |
3596 StreamingOutputStream (OutputStream os, long expectedLength) { |
3596 StreamingOutputStream (OutputStream os, long expectedLength) { |
3597 super (os); |
3597 super (os); |
3598 expected = expectedLength; |
3598 expected = expectedLength; |