接口 UriComponentsContributor
- 所有已知实现类:
CompositeUriComponentsContributor,PathVariableMethodArgumentResolver,RequestParamMethodArgumentResolver
public interface UriComponentsContributor
Strategy for contributing to the building of a
UriComponents by
looking at a method parameter and an argument value and deciding what
part of the target URL should be updated.- 从以下版本开始:
- 4.0 2022/4/7 22:04
- 作者:
- Oliver Gierke, Rossen Stoyanchev, Harry Yang
-
方法概要
修饰符和类型方法说明voidcontributeMethodArgument(cn.taketoday.core.MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables, cn.taketoday.core.conversion.ConversionService conversionService) Process the given method argument and either update theUriComponentsBuilderor add to the map with URI variables to use to expand the URI after all arguments are processed.booleansupportsParameter(cn.taketoday.core.MethodParameter parameter) Whether this contributor supports the given method parameter.
-
方法详细资料
-
supportsParameter
boolean supportsParameter(cn.taketoday.core.MethodParameter parameter) Whether this contributor supports the given method parameter. -
contributeMethodArgument
void contributeMethodArgument(cn.taketoday.core.MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables, cn.taketoday.core.conversion.ConversionService conversionService) Process the given method argument and either update theUriComponentsBuilderor add to the map with URI variables to use to expand the URI after all arguments are processed.- 参数:
parameter- the controller method parameter (nevernull)value- the argument value (possiblynull)builder- the builder to update (nevernull)uriVariables- a map to add URI variables to (nevernull)conversionService- a ConversionService to format values as Strings
-