public static String newURI ( String scheme , String server , int port , String path , String query ) { StringBuilder builder = newURIBuilder ( scheme , server , port ) ; builder . append ( path ) ; if ( query != null && query . length ( ) > 0 ) builder . append ( ' ' ) . append ( query ) ; return builder . toString ( ) ; }
Create a new URI from the arguments handling IPv6 host encoding and default ports