类 FileStorage

java.lang.Object
cn.taketoday.http.codec.multipart.FileStorage
直接已知子类:
FileStorage.PathFileStorage, FileStorage.TempFileStorage

abstract class FileStorage extends Object
Represents a directory used to store parts larger than DefaultPartHttpMessageReader.setMaxInMemorySize(int).
从以下版本开始:
4.0
作者:
Arjen Poutsma, Harry Yang
  • 字段详细资料

    • logger

      private static final cn.taketoday.logging.Logger logger
  • 构造器详细资料

    • FileStorage

      protected FileStorage()
  • 方法详细资料

    • directory

      public abstract reactor.core.publisher.Mono<Path> directory()
      Get the mono of the directory to store files in.
    • fromPath

      public static FileStorage fromPath(Path path) throws IOException
      Create a new FileStorage from a user-specified path. Creates the path if it does not exist.
      抛出:
      IOException
    • tempDirectory

      public static FileStorage tempDirectory(Supplier<reactor.core.scheduler.Scheduler> scheduler)
      Create a new FileStorage based on a temporary directory.
      参数:
      scheduler - the scheduler to use for blocking operations