Package io.micronaut.openapi.visitor
Class UrlUtils
java.lang.Object
io.micronaut.openapi.visitor.UrlUtils
URL and URL paths util methods.
- Since:
- 6.12.0
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
Segment of urlTemplate.static enum
Type of segment. -
Method Summary
Modifier and TypeMethodDescriptionbuildUrls
(List<UrlUtils.Segment> segments) Construct all possible URL variants by parsed segments.static List<UrlUtils.Segment>
parsePathSegments
(String pathString) Parse path string to list of segments.
-
Method Details
-
buildUrls
Construct all possible URL variants by parsed segments.- Parameters:
segments
- url template segments- Returns:
- all possible URL variants by parsed segments.
-
parsePathSegments
Parse path string to list of segments.- Parameters:
pathString
- path string- Returns:
- list of segments
-