private UriBuilder(URI uri) { checkNotNull(uri, "uri"); this.scheme = uri.getScheme(); this.host = uri.getHost(); this.port = uri.getPort() == -1 ? null : uri.getPort(); if (uri.getPath() != null) path(unescapeSpecialChars(uri.getPath())); if (uri.getQuery() != null) query(queryParser().apply(unescapeSpecialChars(uri.getQuery()))); }
private UriBuilder(URI uri) { checkNotNull(uri, "uri"); this.scheme = uri.getScheme(); this.host = uri.getHost(); this.port = uri.getPort() == -1 ? null : uri.getPort(); if (uri.getRawPath() != null) // path decodes the string, so we need to get at the raw (encoded) string path(unescapeSpecialChars(uri.getRawPath())); if (uri.getRawQuery() != null) // The query parser decodes the strings that are passed to it; we should pass raw (encoded) queries query(queryParser().apply(unescapeSpecialChars(uri.getRawQuery()))); }
private UriBuilder(URI uri) { checkNotNull(uri, "uri"); this.scheme = uri.getScheme(); this.host = uri.getHost(); this.port = uri.getPort() == -1 ? null : uri.getPort(); if (uri.getRawPath() != null) // path decodes the string, so we need to get at the raw (encoded) string path(unescapeSpecialChars(uri.getRawPath())); if (uri.getRawQuery() != null) // The query parser decodes the strings that are passed to it; we should pass raw (encoded) queries query(queryParser().apply(unescapeSpecialChars(uri.getRawQuery()))); }
private UriBuilder(URI uri) { checkNotNull(uri, "uri"); this.scheme = uri.getScheme(); this.host = uri.getHost(); this.port = uri.getPort() == -1 ? null : uri.getPort(); if (uri.getRawPath() != null) // path decodes the string, so we need to get at the raw (encoded) string path(unescapeSpecialChars(uri.getRawPath())); if (uri.getRawQuery() != null) // The query parser decodes the strings that are passed to it; we should pass raw (encoded) queries query(queryParser().apply(unescapeSpecialChars(uri.getRawQuery()))); }
private UriBuilder(URI uri) { checkNotNull(uri, "uri"); this.scheme = uri.getScheme(); this.host = uri.getHost(); this.port = uri.getPort() == -1 ? null : uri.getPort(); if (uri.getPath() != null) path(unescapeSpecialChars(uri.getPath())); if (uri.getQuery() != null) query(queryParser().apply(unescapeSpecialChars(uri.getQuery()))); }
private UriBuilder(URI uri) { checkNotNull(uri, "uri"); this.scheme = uri.getScheme(); this.host = uri.getHost(); this.port = uri.getPort() == -1 ? null : uri.getPort(); if (uri.getPath() != null) path(unescapeSpecialChars(uri.getPath())); if (uri.getQuery() != null) query(queryParser().apply(unescapeSpecialChars(uri.getQuery()))); }