接口 UriComponents.UriTemplateVariables
- 封闭类:
- UriComponents
public static interface UriComponents.UriTemplateVariables
Defines the contract for URI Template variables.
字段概要
字段 修饰符和类型 字段 说明 static Object
SKIP_VALUE
Constant for a value that indicates a URI variable name should be ignored and left as is.
字段详细资料
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 isnull
, an empty String is expanded. If the value isSKIP_VALUE
, the URI variable is not expanded.- 参数:
name
- the variable name- 返回:
- the variable value, possibly
null
orSKIP_VALUE