Here you can find the source of createURIWithFull(final String scheme, final String userInfo, final String host, final int port, final String path, final String query, final String fragment)
public static URI createURIWithFull(final String scheme, final String userInfo, final String host, final int port, final String path, final String query, final String fragment)
//package com.java2s; //License from project: Apache License import java.net.URI; import java.net.URISyntaxException; public class Main { public static URI createURIWithFull(final String scheme, final String userInfo, final String host, final int port, final String path, final String query, final String fragment) { try {/*from w ww .j av a 2 s . c o m*/ return new URI(scheme, userInfo, host, port, path, query, fragment); } catch (URISyntaxException e) { throw new IllegalStateException("Unable to create URI", e); } } }