java.lang.Object
springfox.documentation.spring.web.paths.Paths

public class Paths extends Object
  • 方法详细资料

    • splitCamelCase

      public static String splitCamelCase(String s, String separator)
    • stripSlashes

      public static String stripSlashes(String stringWithSlashes)
    • maybeChompLeadingSlash

      public static String maybeChompLeadingSlash(String path)
    • maybeChompTrailingSlash

      public static String maybeChompTrailingSlash(String path)
    • firstPathSegment

      public static String firstPathSegment(String path)
    • sanitizeRequestMappingPattern

      public static String sanitizeRequestMappingPattern(String requestMappingPattern)
      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

      public static String removeAdjacentForwardSlashes(String candidate)