Class RestPathsAnalyzer


  • public class RestPathsAnalyzer
    extends java.lang.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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static RestPathsAnalyzer build​(io.dropwizard.jersey.DropwizardResourceConfig config)
      Collects all registered template resource paths for console logging.
      java.util.Set<ViewPath> select​(java.lang.String app)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RestPathsAnalyzer

        public RestPathsAnalyzer()
    • Method Detail

      • 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 java.util.Set<ViewPath> select​(java.lang.String app)
        Parameters:
        app - application name
        Returns:
        rest paths of required app