Class AbstractConfigurableWebServerFactory.TempDirs

java.lang.Object
org.springframework.boot.web.server.AbstractConfigurableWebServerFactory.TempDirs
Enclosing class:
AbstractConfigurableWebServerFactory

public static class AbstractConfigurableWebServerFactory.TempDirs extends Object
Manages temporary directories.
Since:
4.1.0
Author:
Phillip Webb, Dave Syer, Andy Wilkinson, Stephane Nicoll, Ivan Sopov, EddĂș MelĂ©ndez, Brian Clozel, Scott Frederick
  • Constructor Details

    • TempDirs

      public TempDirs(int port)
  • Method Details

    • createTempDir

      public Path createTempDir(String prefix)
      Creates a temporary directory and registers it for cleanup.
      Parameters:
      prefix - the directory prefix
      Returns:
      the path to the temporary directory
    • cleanup

      public void cleanup()
      Deletes all created temporary directories.