Package com.ettrema.http.fs

Examples of com.ettrema.http.fs.FsDirectoryResource


    File file = new File(docsRoot + url);
//    if (file.canRead() == false) {
//      throw new NotFoundException(url);
//    }
    if (file.isDirectory()) {
      return new FsDirectoryResource(host, factory, file);
    } else {
      return new FsFileResource(host, factory, file);
    }
  }
View Full Code Here

TOP

Related Classes of com.ettrema.http.fs.FsDirectoryResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.