Java URI Normalize normalizedUri(URI uri)

Here you can find the source of normalizedUri(URI uri)

Description

normalized Uri

License

Apache License

Declaration

public static URI normalizedUri(URI uri) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import com.google.common.base.Throwables;
import java.net.URI;
import java.net.URISyntaxException;

public class Main {
    public static URI normalizedUri(URI uri) {
        try {/*from  w  w w  .  j  ava2 s .  c o m*/
            return new URI(uri.getScheme(), null, uri.getHost(), uri.getPort(), null, null, null);
        } catch (URISyntaxException e) {
            throw Throwables.propagate(e);
        }
    }
}

Related

  1. normalize(String uri, String resourceLocation, String rootLocation)
  2. normalize(URI input)
  3. normalize(URI location)
  4. normalize(URI uri)
  5. normalizedSetCookiePath(final String path, final URI originUri)
  6. normalizeGitRepoLocation(URI location)
  7. normalizeLink(String link, URI parent, boolean removeParams)
  8. normalizeURI(final URI uri)
  9. normalizeURI(String uri)