/src/main/java/org/htmlunit/util/UrlUtils.java
u.getPort( ) , u.getPath( ) , u.URL( ) , u.getQuery( ) ) ;
u.getPort ( ) , u.getPath ( ) , u.getRef ( ) , u.getQuery ( ) ) ;
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 { return createNewUrl(u.getProtocol(), u.getUserInfo(), newHost, <extra_id_0> } public static URL getUrlWithNewHostAndPort(final URL u, final String newHost, final int newPort) throws MalformedURLException { return createNewUrl(u.getProtocol(), u.getUserInfo(), newHost, newPort, u.getPath(), u.getRef(), u.getQuery()); } public static URL getUrlWithNewPort(final URL u, final int newPort) throws MalformedURLException {