From: <no...@us...> - 2003-07-19 17:17:32
|
Log Message: ----------- Fixed deprecated warnings Modified Files: -------------- /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit: HttpWebConnection.java Revision Data ------------- Index: HttpWebConnection.java =================================================================== RCS file: /cvsroot/htmlunit/htmlunit/src/java/com/gargoylesoftware/htmlunit/HttpWebConnection.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- HttpWebConnection.java 16 Jul 2003 20:11:21 -0000 1.12 +++ HttpWebConnection.java 19 Jul 2003 17:17:30 -0000 1.13 @@ -274,10 +274,10 @@ // Disable certificate caching within HttpClient final HttpState httpState = new HttpState() { public void setCredentials( - final String realm, final Credentials credentials ) { + final String realm, final String host, final Credentials credentials ) { } - public Credentials getCredentials( final String realm ) { + public Credentials getCredentials( final String realm, final String host ) { return null; } }; @@ -287,9 +287,9 @@ final HostConfiguration hostConfiguration = new HostConfiguration(); final URI uri; try { - uri = new URI(url); + uri = new URI(url.toExternalForm()); } - catch( URIException e ) { + catch( final URIException e ) { // Theoretically impossible but .... throw new IllegalStateException("Unable to create URI from URL: "+url.toExternalForm()); } |