--- a/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java Mon Oct 19 16:31:48 2009 -0700
+++ b/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java Tue Oct 20 15:35:55 2009 +0100
@@ -1543,7 +1543,7 @@
* because ntlm does not support this feature.
*/
private AuthenticationInfo
- resetProxyAuthentication(AuthenticationInfo proxyAuthentication, AuthenticationHeader auth) {
+ resetProxyAuthentication(AuthenticationInfo proxyAuthentication, AuthenticationHeader auth) throws IOException {
if ((proxyAuthentication != null )&&
proxyAuthentication.getAuthScheme() != NTLM) {
String raw = auth.raw();
@@ -1767,7 +1767,7 @@
/**
* Sets pre-emptive proxy authentication in header
*/
- private void setPreemptiveProxyAuthentication(MessageHeader requests) {
+ private void setPreemptiveProxyAuthentication(MessageHeader requests) throws IOException {
AuthenticationInfo pauth
= AuthenticationInfo.getProxyAuth(http.getProxyHostUsed(),
http.getProxyPortUsed());
@@ -2123,13 +2123,9 @@
String requestURI = null;
- String getRequestURI() {
+ String getRequestURI() throws IOException {
if (requestURI == null) {
- try {
- requestURI = http.getURLFile();
- } catch (IOException e) {
- requestURI = "";
- }
+ requestURI = http.getURLFile();
}
return requestURI;
}