Java URI to Relative URI resolveAbsoluteURI(final URI relativeURI)

Here you can find the source of resolveAbsoluteURI(final URI relativeURI)

Description

resolve Absolute URI

License

LGPL

Declaration

private static URI resolveAbsoluteURI(final URI relativeURI) 

Method Source Code


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

import java.io.File;

import java.net.URI;

public class Main {
    private static URI resolveAbsoluteURI(final URI relativeURI) {
        return getHtdocsDirectory().toURI().resolve(relativeURI);
    }/*from  w  w w  .java 2s .co  m*/

    private static File getHtdocsDirectory() {
        return new File("htdocs");
    }
}

Related

  1. relativizeFromBase(String uri, URI base)
  2. resolve(String baseURI, String connectorURI)
  3. resolve(String path, URI... relativeTo)
  4. resolve(URI base, URI child)
  5. resolve(URI baseURI, String reference)
  6. resolveFile(final URI relativeURI)
  7. resolveFileName(URI uri)
  8. resolveFileNameNoExt(URI uri)
  9. resolveFileUri(String fullPageURI, File rootPath)