Package jmri.server.web
Class AbstractWebServerConfiguration
java.lang.Object
jmri.server.web.AbstractWebServerConfiguration
- All Implemented Interfaces:
WebServerConfiguration
- Direct Known Subclasses:
DefaultWebServerConfiguration,WebAppConfiguration
public abstract class AbstractWebServerConfiguration
extends Object
implements WebServerConfiguration
Abstract implementation of
WebServerConfiguration-
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 not to be returned.Get paths that are to redirected by the web server.
-
Constructor Details
-
AbstractWebServerConfiguration
public AbstractWebServerConfiguration()
-
-
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- 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- 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
-
getForbiddenPaths
Description copied from interface:WebServerConfigurationGet paths that are not to be returned. Requests for paths listed here will be denied aHttpServletResponse.SC_FORBIDDENresponse.- Specified by:
getForbiddenPathsin interfaceWebServerConfiguration- Returns:
- a list containing the request path to be denied access to; return an empty list if none
-