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

  • Method Details

    • canList

      public boolean canList​(String path)
      Description copied from interface: HttpVfs
      Returns whether the file at the specified path is a directory.
      Specified by:
      canList in interface HttpVfs
      Parameters:
      path - an absolute path that starts with '/', whose component separator is '/'
      Returns:
      true if the file is a directory. false if the directory does not exist or the file listing is not available.
    • list

      public List<String> list​(String path)
      Description copied from interface: HttpVfs
      Lists the files at the specified directory path non-recursively.
      Specified by:
      list in interface HttpVfs
      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 empty List is returned.
    • toString

      public String toString()
      Returns the HttpVfs.meterTag() of this HttpVfs.
      Overrides:
      toString in class Object