Here you can find the source of resolveFile(final URI relativeURI)
private static File resolveFile(final URI relativeURI)
//package com.java2s; //License from project: LGPL import java.io.File; import java.net.URI; public class Main { private static File resolveFile(final URI relativeURI) { final File file = new File(resolveAbsoluteURI(relativeURI)); return file.isDirectory() ? new File(file, "index.html") : file; }/*from w ww. j av a 2 s. co m*/ private static URI resolveAbsoluteURI(final URI relativeURI) { return getHtdocsDirectory().toURI().resolve(relativeURI); } private static File getHtdocsDirectory() { return new File("htdocs"); } }