Package jmri.server.web.app
Class WebAppConfiguration
- java.lang.Object
-
- jmri.server.web.AbstractWebServerConfiguration
-
- jmri.server.web.app.WebAppConfiguration
-
- All Implemented Interfaces:
WebServerConfiguration
public class WebAppConfiguration extends AbstractWebServerConfiguration
Provide default paths to the Angular JMRI web application.
-
-
Constructor Summary
Constructors Constructor Description WebAppConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
getFilePaths()
Get paths for static content that would otherwise be handled by theWebAppServlet
.-
Methods inherited from class jmri.server.web.AbstractWebServerConfiguration
getForbiddenPaths, getRedirectedPaths
-
-
-
-
Constructor Detail
-
WebAppConfiguration
public WebAppConfiguration()
-
-
Method Detail
-
getFilePaths
public java.util.Map<java.lang.String,java.lang.String> getFilePaths()
Get paths for static content that would otherwise be handled by theWebAppServlet
. Get 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.PROGRAM
JMRI portable path.- Specified by:
getFilePaths
in interfaceWebServerConfiguration
- Overrides:
getFilePaths
in 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
-
-