src/main/java/com/rockagen/commons/http/HttpConn.java
public static String getURL(HttpHost targetHost, String uri) {
        if (targetHost != null && !CommUtil.isBlank(targetHost.getSchemeName())
                && !CommUtil.isBlank(targetHost.getHostName())
                && targetHost.getPort() > 0) {
            return targetHost + uri;
        }
        return "null" + uri;
    }
public static String getURL(HttpHost targetHost, String uri) {
        if (targetHost != null && !CommUtil.isBlank(targetHost.getSchemeName())
                && !CommUtil.isBlank(targetHost.getHostName())
                && targetHost.getPort() > 0) {
            return targetHost + uri;
        }
        return "null" + uri;
    }
Get url

@param targetHost target {@link org.apache.http.HttpHost}
@param uri the uri
@return new url string