Class DocumentRoot
java.lang.Object
org.springframework.boot.web.server.servlet.DocumentRoot
Manages a
ServletWebServerFactory
document root.- Since:
- 4.0.0
- Author:
- Phillip Webb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal File
Returns the absolute document root when it points to a valid directory, logging a warning and returningnull
otherwise.void
setDirectory
(File directory)
-
Constructor Details
-
DocumentRoot
public DocumentRoot(org.apache.commons.logging.Log logger)
-
-
Method Details
-
setDirectory
-
getValidDirectory
Returns the absolute document root when it points to a valid directory, logging a warning and returningnull
otherwise.- Returns:
- the valid document root
-