Class ServerPagesApp

java.lang.Object
ru.vyarus.guicey.gsp.app.ServerPagesApp

public class ServerPagesApp extends Object
Server pages application initialization logic. Application register:
  • Special assets servlet (with multiple classpath locations support)
  • Main ServerPagesFilter around assets servlet which differentiate asset and template requests (and handle error pages)
Since:
11.01.2019
  • Field Details

  • Constructor Details

    • ServerPagesApp

      public ServerPagesApp()
  • Method Details

    • getName

      public String getName()
      Returns:
      application name
    • install

      public void install(io.dropwizard.core.setup.Environment environment, GlobalConfig config)
      Install configured server page app. Called after all guicey bundles processing (when all extensions registered).
      Parameters:
      environment - dropwizard environment object
      config - global configuration object
    • jerseyStarted

      public void jerseyStarted(String restContext, String restMapping, RestPathsAnalyzer analyzer)
      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

      public GspApp getInfo(GlobalConfig config)
    • isStarted

      protected boolean isStarted()
      Returns:
      true if application already started, false otherwise