All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy