Package ru.vyarus.guicey.gsp.app
Class ServerPagesApp
java.lang.Object
ru.vyarus.guicey.gsp.app.ServerPagesApp
Server pages application initialization logic.
Application register:
- Special assets servlet (with multiple classpath locations support)
- Main
ServerPagesFilteraround assets servlet which differentiate asset and template requests (and handle error pages)
- Since:
- 11.01.2019
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AssetSourcesprotected AssetLookupprotected Stringprotected Stringprotected List<HiddenViewPath>protected Stringprotected Stringprotected booleanprotected Stringprotected Stringprotected booleanprotected TemplateRedirectprotected Stringprotected List<MappedViewPath>protected final ViewRestSourcesprotected ViewRestLookupprotected final Map<String,ViewRendererConfigurationModifier> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInfo(GlobalConfig config) getName()voidinstall(io.dropwizard.core.setup.Environment environment, GlobalConfig config) Install configured server page app.protected booleanvoidjerseyStarted(String restContext, String restMapping, RestPathsAnalyzer analyzer) Delayed initialization.
-
Field Details
-
name
-
mainContext
protected boolean mainContext -
mainAssetsPath
-
uriPath
-
indexFile
-
fileRequestPattern
-
requiredRenderers
-
spaSupport
protected boolean spaSupport -
spaNoRedirectRegex
-
viewsConfigModifiers
-
assetLocations
-
viewPrefixes
-
errorPages
-
fullUriPath
-
templateRedirect
-
assets
-
views
-
viewPaths
-
-
Constructor Details
-
ServerPagesApp
public ServerPagesApp()
-
-
Method Details
-
getName
- Returns:
- application name
-
install
Install configured server page app. Called after all guicey bundles processing (when all extensions registered).- Parameters:
environment- dropwizard environment objectconfig- global configuration object
-
jerseyStarted
Delayed initialization. Important to call when jersey initialization finished to get correct rest path and make sure all extended registrations (other bundles extending app) are performed.- Parameters:
restContext- rest context mapping ( == main context mapping)restMapping- servlet mapping (under main context)analyzer- rest analyzer
-
getInfo
-
isStarted
protected boolean isStarted()- Returns:
- true if application already started, false otherwise
-