UriComponentsContributor containing a list of other contributors
to delegate to and also encapsulating a specific ConversionService to
use for formatting method argument values as Strings.
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final ConversionService |
| Access | Constructor and Description |
|---|---|
| public | CompositeUriComponentsContributor(UriComponentsContributor...
a collection of contributors)UriComponentsContributor
or HandlerMethodArgumentResolversCreate an instance from a collection of |
| public | CompositeUriComponentsContributor(Collection<?>
a collection of contributors)UriComponentsContributor
or HandlerMethodArgumentResolversCreate an instance from a collection of |
| public | CompositeUriComponentsContributor(Collection<?>
a collection of contributors, ConversionService UriComponentsContributor
or HandlerMethodArgumentResolversa ConversionService to use when method argument values
need to be formatted as Strings before being added to the URI cs)Create an instance from a collection of |
| Modifier and Type | Method and Description |
|---|---|
| public void | contributeMethodArgument(MethodParameter
the controller method parameter (never parameter, Object null)the argument value (possibly value, UriComponentsBuilder null)the builder to update (never builder, Map<String, Object> null)a map to add URI variables to (never uriVariables, ConversionService null)a ConversionService to format values as Strings conversionService)Implements org. UriComponentsBuilder or add to the map with URI variables
to use to expand the URI after all arguments are processed.
|
| public void | contributeMethodArgument(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables)
An overloaded method that uses the ConversionService created at construction. |
| public boolean | Returns: true if this CompositeUriComponentsContributor
was created with contributors to delegate toDetermine if this |
| public boolean | supportsParameter(MethodParameter parameter)
Implements org. |
| contributors | back to summary |
|---|---|
| private final List<Object> contributors | |
| conversionService | back to summary |
|---|---|
| private final ConversionService conversionService | |
| CompositeUriComponentsContributor | back to summary |
|---|---|
| public CompositeUriComponentsContributor(UriComponentsContributor... contributors) Create an instance from a collection of
| |
| CompositeUriComponentsContributor | back to summary |
|---|---|
| public CompositeUriComponentsContributor(Collection<?> contributors) Create an instance from a collection of
| |
| CompositeUriComponentsContributor | back to summary |
|---|---|
| public CompositeUriComponentsContributor(Collection<?> contributors, ConversionService cs) Create an instance from a collection of If the
| |
| contributeMethodArgument | back to summary |
|---|---|
| public void contributeMethodArgument(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables, ConversionService conversionService) Implements org. Doc from org. Process the given method argument and either update the
| |
| contributeMethodArgument | back to summary |
|---|---|
| public void contributeMethodArgument(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables) An overloaded method that uses the ConversionService created at construction. | |
| hasContributors | back to summary |
|---|---|
| public boolean hasContributors() Determine if this
| |
| supportsParameter | back to summary |
|---|---|
| public boolean supportsParameter(MethodParameter parameter) Implements org. Doc from org. Whether this contributor supports the given method parameter.
| |