Package com.linecorp.armeria.server.file
Class AbstractHttpVfs
java.lang.Object
com.linecorp.armeria.server.file.AbstractHttpVfs
- All Implemented Interfaces:
HttpVfs
public abstract class AbstractHttpVfs extends Object implements HttpVfs
A skeletal
HttpVfs
implementation.-
Constructor Details
-
AbstractHttpVfs
public AbstractHttpVfs()
-
-
Method Details
-
canList
Description copied from interface:HttpVfs
Returns whether the file at the specifiedpath
is a directory. -
list
Description copied from interface:HttpVfs
Lists the files at the specified directorypath
non-recursively.- Specified by:
list
in interfaceHttpVfs
- Parameters:
path
- an absolute path that starts with'/'
, whose component separator is'/'
- Returns:
- the list of the file names. If the file is a directory, the file name will end with
'/'
. If the directory does not exist or the file listing is not available, an emptyList
is returned.
-
toString
Returns theHttpVfs.meterTag()
of thisHttpVfs
.
-