@FunctionalInterface public interface HttpVfs
HttpFileService
.Modifier and Type | Interface and Description |
---|---|
static class |
HttpVfs.AbstractEntry
A skeletal
HttpVfs.Entry implementation. |
static class |
HttpVfs.ByteArrayEntry
An
HttpVfs.Entry whose content is backed by a byte array. |
static interface |
HttpVfs.Entry
A file entry in an
HttpVfs . |
Modifier and Type | Method and Description |
---|---|
HttpVfs.Entry |
get(String path,
String contentEncoding)
Finds the file at the specified
path . |
static HttpVfs |
ofClassPath(ClassLoader classLoader,
String rootDir)
Creates a new
HttpVfs with the specified rootDir in the current class path. |
static HttpVfs |
ofClassPath(String rootDir)
Creates a new
HttpVfs with the specified rootDir in the current class path. |
static HttpVfs |
ofFileSystem(Path rootDir)
Creates a new
HttpVfs with the specified rootDir in an O/S file system. |
static HttpVfs |
ofFileSystem(String rootDir)
Creates a new
HttpVfs with the specified rootDir in an O/S file system. |
static HttpVfs ofFileSystem(String rootDir)
HttpVfs
with the specified rootDir
in an O/S file system.static HttpVfs ofFileSystem(Path rootDir)
HttpVfs
with the specified rootDir
in an O/S file system.static HttpVfs ofClassPath(String rootDir)
HttpVfs
with the specified rootDir
in the current class path.static HttpVfs ofClassPath(ClassLoader classLoader, String rootDir)
HttpVfs
with the specified rootDir
in the current class path.HttpVfs.Entry get(String path, @Nullable String contentEncoding)
path
.path
- an absolute path whose component separator is '/'
contentEncoding
- the content encoding of the file. Will be non-null for precompressed resourcesHttpVfs.Entry
of the file at the specified path
if found.
HttpVfs.Entry.NONE
if not found.© Copyright 2015–2017 LINE Corporation. All rights reserved.