io.airlift.http.client.spnego.UriUtil Maven / Gradle / Ivy
The newest version!
package io.airlift.http.client.spnego;
import com.google.common.base.Throwables;
import java.net.URI;
import java.net.URISyntaxException;
class UriUtil
{
public static URI normalizedUri(URI uri)
{
try {
return new URI(uri.getScheme(), null, uri.getHost(), uri.getPort(), null, null, null);
}
catch (URISyntaxException e) {
throw Throwables.propagate(e);
}
}
}