java.lang.Object
org.springframework.data.rest.webmvc.util.UriUtils

public abstract class UriUtils extends Object
Utility methods to work with requests and URIs.
Author:
Oliver Gierke, Mark Paluch
  • Method Details

    • findMappingVariable

      public static String findMappingVariable(String variable, Method method, String lookupPath)
      Returns the value for the mapping variable with the given name.
      Parameters:
      variable - must not be null or empty.
      method - must not be null.
      lookupPath -
      Returns:
    • getPathSegments

      public static List<String> getPathSegments(Method method)
      Returns the mapping path segments request mapping.
      Parameters:
      method - must not be null.
      Returns: