Class MvcUriComponentsBuilder.MethodArgumentBuilder
java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.MvcUriComponentsBuilder.MethodArgumentBuilder
- Enclosing class:
- MvcUriComponentsBuilder
Builder class to create URLs for method arguments.
-
Constructor Summary
ConstructorDescriptionMethodArgumentBuilder
(Class<?> controllerType, Method method) Create a newMvcUriComponentsBuilder.MethodArgumentBuilder
instance.MethodArgumentBuilder
(UriComponentsBuilder baseUrl, Class<?> controllerType, Method method) Create a newMvcUriComponentsBuilder.MethodArgumentBuilder
instance. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
buildAndExpand
(Object... uriVars) encode()
Use this method only if you need to apply strong encoding to expanded URI variables by quoting all characters with reserved meaning.
-
Constructor Details
-
MethodArgumentBuilder
Create a newMvcUriComponentsBuilder.MethodArgumentBuilder
instance.- Since:
- 4.2
-
MethodArgumentBuilder
public MethodArgumentBuilder(@Nullable UriComponentsBuilder baseUrl, Class<?> controllerType, Method method) Create a newMvcUriComponentsBuilder.MethodArgumentBuilder
instance.- Since:
- 4.2
-
-
Method Details
-
arg
-
encode
Use this method only if you need to apply strong encoding to expanded URI variables by quoting all characters with reserved meaning.- Since:
- 5.0.8
-
build
-
buildAndExpand
-