Class RestPathsAnalyzer

java.lang.Object
ru.vyarus.guicey.gsp.app.rest.log.RestPathsAnalyzer

public class RestPathsAnalyzer extends Object
Collects template resources for logging. Implementation is a copy of dropwizard's own logging from DropwizardResourceConfig (which can't be used directly).
Since:
06.12.2018
  • Constructor Details

    • RestPathsAnalyzer

      public RestPathsAnalyzer()
  • Method Details

    • build

      public static RestPathsAnalyzer build(io.dropwizard.jersey.DropwizardResourceConfig config)
      Collects all registered template resource paths for console logging.
      Parameters:
      config - dropwizard resources configuration object
      Returns:
      analyzer instance with all found template resources
    • select

      public Set<ViewPath> select(String app)
      Parameters:
      app - application name
      Returns:
      rest paths of required app