Class UrlUtils

java.lang.Object
io.micronaut.openapi.visitor.UrlUtils

@Internal public final class UrlUtils extends Object
URL and URL paths util methods.
Since:
6.12.0
  • Method Details

    • buildUrls

      public static List<String> buildUrls(List<UrlUtils.Segment> segments)
      Construct all possible URL variants by parsed segments.
      Parameters:
      segments - url template segments
      Returns:
      all possible URL variants by parsed segments.
    • parsePathSegments

      public static List<UrlUtils.Segment> parsePathSegments(String pathString)
      Parse path string to list of segments.
      Parameters:
      pathString - path string
      Returns:
      list of segments