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 java.lang.Object implements WebServerConfiguration Abstract implementation ofWebServerConfiguration
- 
- 
Constructor SummaryConstructors Constructor Description AbstractWebServerConfiguration()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getFilePaths()Get paths that are to be returned by the web server as individual files or directory listings.java.util.List<java.lang.String>getForbiddenPaths()Get paths that are not to be returned.java.util.Map<java.lang.String,java.lang.String>getRedirectedPaths()Get paths that are to redirected by the web server.
 
- 
- 
- 
Constructor Detail- 
AbstractWebServerConfigurationpublic AbstractWebServerConfiguration() 
 
- 
 - 
Method Detail- 
getFilePathspublic java.util.Map<java.lang.String,java.lang.String> 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 interface- WebServerConfiguration
- Returns:
- a map containing the web path as the key, and the path on disk as the value; return an empty map if none
 
 - 
getRedirectedPathspublic java.util.Map<java.lang.String,java.lang.String> getRedirectedPaths() Description copied from interface:WebServerConfigurationGet paths that are to redirected by the web server.- Specified by:
- getRedirectedPathsin interface- WebServerConfiguration
- 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
 
 - 
getForbiddenPathspublic java.util.List<java.lang.String> 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 interface- WebServerConfiguration
- Returns:
- a list containing the request path to be denied access to; return an empty list if none
 
 
- 
 
-