类 Paths
java.lang.Object
springfox.documentation.spring.web.paths.Paths
-
方法概要
修饰符和类型方法说明static StringfirstPathSegment(String path) static StringmaybeChompLeadingSlash(String path) static Stringstatic StringremoveAdjacentForwardSlashes(String candidate) static StringsanitizeRequestMappingPattern(String requestMappingPattern) Gets a uri friendly path from a request mapping pattern.static StringsplitCamelCase(String s, String separator) static StringstripSlashes(String stringWithSlashes)
-
方法详细资料
-
splitCamelCase
-
stripSlashes
-
maybeChompLeadingSlash
-
maybeChompTrailingSlash
-
firstPathSegment
-
sanitizeRequestMappingPattern
Gets a uri friendly path from a request mapping pattern. Typically involves removing any regex patterns or || conditions from a spring request mapping This method will be called to resolve every request mapping endpoint. A good extension point if you need to alter endpoints by adding or removing path segments. Note: this should not be an absolute uri- 参数:
requestMappingPattern- request mapping pattern- 返回:
- the request mapping endpoint
-
removeAdjacentForwardSlashes
-