Class RoutesSpec

    • Constructor Detail

      • RoutesSpec

        public RoutesSpec​(org.springframework.context.ConfigurableApplicationContext context)
    • Method Detail

      • route

        public RoutesSpec route​(String path,
                                Function<RouteSpec,​RouteSpec> fn)
        Adds a new RouteSpec with the provided path and configured by the provided function.
        Parameters:
        path - the path of the route
        fn - used for customization the route spec
        Returns:
        this
      • getContext

        protected org.springframework.context.ConfigurableApplicationContext getContext()