Class URIUtils
java.lang.Object
ai.apiverse.apisuite.mirror.utils.URIUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanarePathSegmentMatching(String pathVariableA, String pathVariableB) static Optional<URI.PathSegment>closedMatchingTemplate(List<URI.PathSegment> candidates, URI.SegmentTemplateDataType type) static List<URI.PathSegment>filterNumericNonTemplateSegments(List<URI.PathSegment> segments) static List<URI.PathSegment>filterUUIDNonTemplateSegments(List<URI.PathSegment> segments) static URI.PathSegmentgetClosedMatchingPathSegment(URI.PathSegment pathSegment, List<URI.PathSegment> candidates) static URI.PathSegmentgetDeepClone(URI.PathSegment pathSegment) static URI.PathSegmentgetNonTemplateSegment(String segmentName) static URI.PathSegmentgetPathSegment(String segmentName) getPathSegments(String uri) static URI.PathSegmentgetTemplateSegment(URI.SegmentTemplateDataType segmentTemplateDataType) static URIgetURIFrom(List<URI.PathSegment> pathSegments) static StringgetVariableId(String pathSegment) static booleanstatic booleanstatic booleanisNumericNonTemplateSegment(URI.PathSegment pathSegment) static booleanisNumericSegment(URI.PathSegment pathSegment) static booleanisPathSegmentTemplate(String pathSegment) static booleanisTemplateSegment(URI.PathSegment pathSegment) static booleanstatic booleanisUUIDNonTemplateSegment(URI.PathSegment pathSegment) static booleanisUUIDSegment(URI.PathSegment pathSegment)
-
Field Details
-
alphaNumericPattern
-
-
Constructor Details
-
URIUtils
public URIUtils()
-
-
Method Details
-
arePathSegmentMatching
-
isPathSegmentTemplate
-
getVariableId
-
getPathSegments
-
getClosedMatchingPathSegment
public static URI.PathSegment getClosedMatchingPathSegment(URI.PathSegment pathSegment, List<URI.PathSegment> candidates) -
closedMatchingTemplate
public static Optional<URI.PathSegment> closedMatchingTemplate(List<URI.PathSegment> candidates, URI.SegmentTemplateDataType type) -
isNumericSegment
-
isUUIDSegment
-
isIdType
-
isUUID
-
isNumeric
-
filterNumericNonTemplateSegments
public static List<URI.PathSegment> filterNumericNonTemplateSegments(List<URI.PathSegment> segments) -
isNumericNonTemplateSegment
-
filterUUIDNonTemplateSegments
-
isUUIDNonTemplateSegment
-
isTemplateSegment
-
getDeepClone
-
getPathSegment
-
getNonTemplateSegment
-
getTemplateSegment
public static URI.PathSegment getTemplateSegment(URI.SegmentTemplateDataType segmentTemplateDataType) -
getURIFrom
-