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, io.micronaut.inject.visitor.VisitorContext context) 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
public static List<String> buildUrls(List<UrlUtils.Segment> segments, io.micronaut.inject.visitor.VisitorContext context) Construct all possible URL variants by parsed segments.- Parameters:
segments
- url template segmentscontext
- visitor context- Returns:
- all possible URL variants by parsed segments.
-
parsePathSegments
Parse path string to list of segments.- Parameters:
pathString
- path string- Returns:
- list of segments
-