接口 UriComponents.UriTemplateVariables

所有已知实现类:
HierarchicalUriComponents.QueryUriTemplateVariables, UriComponents.MapTemplateVariables, UriComponents.VarArgsTemplateVariables
封闭类:
UriComponents

public static interface UriComponents.UriTemplateVariables
Defines the contract for URI Template variables.
另请参阅:
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final Object
    Constant for a value that indicates a URI variable name should be ignored and left as is.
  • 方法概要

    修饰符和类型
    方法
    说明
    Get the value for the given URI variable name.
  • 字段详细资料

    • SKIP_VALUE

      static final Object SKIP_VALUE
      Constant for a value that indicates a URI variable name should be ignored and left as is. This is useful for partial expanding of some but not all URI variables.
  • 方法详细资料

    • getValue

      @Nullable Object getValue(@Nullable String name)
      Get the value for the given URI variable name. If the value is null, an empty String is expanded. If the value is SKIP_VALUE, the URI variable is not expanded.
      参数:
      name - the variable name
      返回:
      the variable value, possibly null or SKIP_VALUE