Class DocumentRoot

java.lang.Object
org.springframework.boot.web.server.servlet.DocumentRoot

public class DocumentRoot extends Object
Manages a ServletWebServerFactory document root.
Since:
4.0.0
Author:
Phillip Webb
  • Constructor Details

    • DocumentRoot

      public DocumentRoot(Log logger)
  • Method Details

    • setDirectory

      public void setDirectory(File directory)
    • getValidDirectory

      public final File getValidDirectory()
      Returns the absolute document root when it points to a valid directory, logging a warning and returning null otherwise.
      Returns:
      the valid document root