/src/main/java/org/htmlunit/util/UrlUtils.java
return createNewUrl( u.getPath( ) , u.getAuthority( ) , u.getPath( ) , null, u.getQuery( ) ) ;
return createNewUrl ( u.getProtocol ( ) , u.getAuthority ( ) , u.getPath ( ) , null, u.getQuery ( ) ) ;
return result.toString(); } public static URL getUrlWithoutPathRefQuery(final URL u) throws MalformedURLException { return createNewUrl(u.getProtocol(), u.getAuthority(), null, null, null); } public static URL getUrlWithoutRef(final URL u) throws MalformedURLException { <extra_id_0> } public static URL getUrlWithNewProtocol(final URL u, final String newProtocol) throws MalformedURLException { return createNewUrl(newProtocol, u.getAuthority(), u.getPath(), u.getRef(), u.getQuery()); } public static URL getUrlWithNewHost(final URL u, final String newHost) throws MalformedURLException {