Package jmri.server.web.spi
Interface WebManifest
- All Known Implementing Classes:
JsonManifest
public interface WebManifest
Provide integration for the JMRI web services so servlets can visually
integrate into the JMRI web site.
-
Method Summary
Modifier and TypeMethodDescriptionGet the Angular dependencies required by the servlet associated with the manifest.Get the Angular routes supported by the servlet associated with the manifest.Get the sources for the Angular module components required by the servlet associated with the manifest.Get the navigation menu items that provide access to the servlet associated with the manifest.getPreloadedTranslations(Locale locale) Get the paths for JSON translation dictionaries to pre-load.Get any scripts the servlet associated with the manifest requires in the order required.Get any CSS style sheets the servlet associated with the manifest requires in the order required.
-
Method Details
-
getScripts
Get any scripts the servlet associated with the manifest requires in the order required.- Returns:
- a set of script URLs; provide an empty set if the item needs no scripts
-
getStyles
Get any CSS style sheets the servlet associated with the manifest requires in the order required.- Returns:
- a set of style sheet URLs; provide an empty set if the item needs no style sheets
-
getAngularDependencies
Get the Angular dependencies required by the servlet associated with the manifest.- Returns:
- an ordered list of angular dependencies
-
getAngularRoutes
Get the Angular routes supported by the servlet associated with the manifest.- Returns:
- a map of angular path to angular routing instructions
-
getAngularSources
Get the sources for the Angular module components required by the servlet associated with the manifest.- Returns:
- a list of sources to include in the web app
-
getPreloadedTranslations
Get the paths for JSON translation dictionaries to pre-load. If translation dictionaries exist, but not for the requested Locale, fallback onto the requested language, and, if that is also not available, to the English language with no country specified.- Parameters:
locale- the requested locale for the translations- Returns:
- a list of translation sources