Package jmri.server.web
Class DefaultWebServerConfiguration
java.lang.Object
jmri.server.web.AbstractWebServerConfiguration
jmri.server.web.DefaultWebServerConfiguration
- All Implemented Interfaces:
WebServerConfiguration
Default implementation of
WebServerConfiguration.
This implementation reads two properties files to build the JMRI default
configuration for the Web Server. Default forbidden paths are listed in the
WebServlet annotation for DenialServlet.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet paths that are to be returned by the web server as individual files or directory listings.Get paths that are to redirected by the web server.Methods inherited from class jmri.server.web.AbstractWebServerConfiguration
getForbiddenPaths
-
Constructor Details
-
DefaultWebServerConfiguration
public DefaultWebServerConfiguration()
-
-
Method Details
-
getFilePaths
Description copied from interface:WebServerConfigurationGet paths that are to be returned by the web server as individual files or directory listings. Note that all files or directories listed must be in theFileUtil.PREFERENCES,FileUtil.PROFILE,FileUtil.SETTINGS, orFileUtil.PROGRAMJMRI portable path.- Specified by:
getFilePathsin interfaceWebServerConfiguration- Overrides:
getFilePathsin classAbstractWebServerConfiguration- Returns:
- a map containing the web path as the key, and the path on disk as the value; return an empty map if none
-
getRedirectedPaths
Description copied from interface:WebServerConfigurationGet paths that are to redirected by the web server.- Specified by:
getRedirectedPathsin interfaceWebServerConfiguration- Overrides:
getRedirectedPathsin classAbstractWebServerConfiguration- Returns:
- a map containing the request path as the key and the path to redirect to as the value; return an empty map if none
-