Uses of Class
org.springframework.web.util.UriComponentsBuilder
Packages that use UriComponentsBuilder
Package
Description
Support classes for annotation-based handler method processing.
Generic support classes for handler method processing.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package.Support classes for Spring's web MVC framework.
Miscellaneous web utility classes, such as HTML escaping and cookie handling.
-
Uses of UriComponentsBuilder in org.springframework.web.method.annotation
Methods in org.springframework.web.method.annotation with parameters of type UriComponentsBuilderModifier and TypeMethodDescriptionvoidRequestParamMethodArgumentResolver.contributeMethodArgument(MethodParameter parameter, @Nullable Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables, ConversionService conversionService) -
Uses of UriComponentsBuilder in org.springframework.web.method.support
Methods in org.springframework.web.method.support with parameters of type UriComponentsBuilderModifier and TypeMethodDescriptionvoidCompositeUriComponentsContributor.contributeMethodArgument(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables) An overloaded method that uses the ConversionService created at construction.voidCompositeUriComponentsContributor.contributeMethodArgument(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables, ConversionService conversionService) voidUriComponentsContributor.contributeMethodArgument(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables, 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. -
Uses of UriComponentsBuilder in org.springframework.web.servlet.mvc.method.annotation
Methods in org.springframework.web.servlet.mvc.method.annotation that return UriComponentsBuilderModifier and TypeMethodDescriptionstatic UriComponentsBuilderMvcUriComponentsBuilder.fromController(Class<?> controllerType) Create aUriComponentsBuilderfrom the mapping of a controller class and current request information including Servlet mapping.static UriComponentsBuilderMvcUriComponentsBuilder.fromController(@Nullable UriComponentsBuilder builder, Class<?> controllerType) An alternative toMvcUriComponentsBuilder.fromController(Class)that accepts aUriComponentsBuilderrepresenting the base URL.static UriComponentsBuilderMvcUriComponentsBuilder.fromMethod(Class<?> controllerType, Method method, Object... args) Create aUriComponentsBuilderfrom the mapping of a controller method and an array of method argument values.static UriComponentsBuilderMvcUriComponentsBuilder.fromMethod(UriComponentsBuilder baseUrl, @Nullable Class<?> controllerType, Method method, Object... args) An alternative toMvcUriComponentsBuilder.fromMethod(Class, Method, Object...)that accepts aUriComponentsBuilderrepresenting the base URL.static UriComponentsBuilderMvcUriComponentsBuilder.fromMethodCall(Object info) Create aUriComponentsBuilderby invoking a "mock" controller method.static UriComponentsBuilderMvcUriComponentsBuilder.fromMethodCall(UriComponentsBuilder builder, Object info) An alternative toMvcUriComponentsBuilder.fromMethodCall(Object)that accepts aUriComponentsBuilderrepresenting the base URL.static UriComponentsBuilderMvcUriComponentsBuilder.fromMethodName(Class<?> controllerType, String methodName, Object... args) Create aUriComponentsBuilderfrom the mapping of a controller method and an array of method argument values.static UriComponentsBuilderMvcUriComponentsBuilder.fromMethodName(UriComponentsBuilder builder, Class<?> controllerType, String methodName, Object... args) An alternative toMvcUriComponentsBuilder.fromMethodName(Class, String, Object...)that accepts aUriComponentsBuilderrepresenting the base URL.MvcUriComponentsBuilder.withController(Class<?> controllerType) An alternative toMvcUriComponentsBuilder.fromController(Class)for use with an instance of this class created via a call toMvcUriComponentsBuilder.relativeTo(UriComponentsBuilder).MvcUriComponentsBuilder.withMethod(Class<?> controllerType, Method method, Object... args) An alternative toMvcUriComponentsBuilder.fromMethod(Class, Method, Object...)for use with an instance of this class created viaMvcUriComponentsBuilder.relativeTo(UriComponentsBuilder).MvcUriComponentsBuilder.withMethodCall(Object invocationInfo) An alternative toMvcUriComponentsBuilder.fromMethodCall(Object)for use with an instance of this class created viaMvcUriComponentsBuilder.relativeTo(UriComponentsBuilder).MvcUriComponentsBuilder.withMethodName(Class<?> controllerType, String methodName, Object... args) An alternative toMvcUriComponentsBuilder.fromMethodName(Class, String, Object...)for use with an instance of this class created viaMvcUriComponentsBuilder.relativeTo(UriComponentsBuilder).Methods in org.springframework.web.servlet.mvc.method.annotation with parameters of type UriComponentsBuilderModifier and TypeMethodDescriptionvoidPathVariableMethodArgumentResolver.contributeMethodArgument(MethodParameter parameter, Object value, UriComponentsBuilder builder, Map<String, Object> uriVariables, ConversionService conversionService) static UriComponentsBuilderMvcUriComponentsBuilder.fromController(@Nullable UriComponentsBuilder builder, Class<?> controllerType) An alternative toMvcUriComponentsBuilder.fromController(Class)that accepts aUriComponentsBuilderrepresenting the base URL.MvcUriComponentsBuilder.fromMappingName(@Nullable UriComponentsBuilder builder, String name) An alternative toMvcUriComponentsBuilder.fromMappingName(String)that accepts aUriComponentsBuilderrepresenting the base URL.static UriComponentsBuilderMvcUriComponentsBuilder.fromMethod(UriComponentsBuilder baseUrl, @Nullable Class<?> controllerType, Method method, Object... args) An alternative toMvcUriComponentsBuilder.fromMethod(Class, Method, Object...)that accepts aUriComponentsBuilderrepresenting the base URL.static UriComponentsBuilderMvcUriComponentsBuilder.fromMethodCall(UriComponentsBuilder builder, Object info) An alternative toMvcUriComponentsBuilder.fromMethodCall(Object)that accepts aUriComponentsBuilderrepresenting the base URL.static UriComponentsBuilderMvcUriComponentsBuilder.fromMethodName(UriComponentsBuilder builder, Class<?> controllerType, String methodName, Object... args) An alternative toMvcUriComponentsBuilder.fromMethodName(Class, String, Object...)that accepts aUriComponentsBuilderrepresenting the base URL.static MvcUriComponentsBuilderMvcUriComponentsBuilder.relativeTo(UriComponentsBuilder baseUrl) Create an instance of this class with a base URL.Constructors in org.springframework.web.servlet.mvc.method.annotation with parameters of type UriComponentsBuilderModifierConstructorDescriptionMethodArgumentBuilder(@Nullable UriComponentsBuilder baseUrl, Class<?> controllerType, Method method) Create a newMvcUriComponentsBuilder.MethodArgumentBuilderinstance.protectedDefault constructor. -
Uses of UriComponentsBuilder in org.springframework.web.servlet.support
Subclasses of UriComponentsBuilder in org.springframework.web.servlet.supportModifier and TypeClassDescriptionclassUriComponentsBuilder with additional static factory methods to create links based on the current HttpServletRequest. -
Uses of UriComponentsBuilder in org.springframework.web.util
Methods in org.springframework.web.util that return UriComponentsBuilderModifier and TypeMethodDescriptionstatic UriComponentsBuilderForwardedHeaderUtils.adaptFromForwardedHeaders(URI uri, HttpHeaders headers) UriComponentsBuilder.cloneBuilder()Clone thisUriComponentsBuilder.final UriComponentsBuilderUriComponentsBuilder.encode()Request to have the URI template pre-encoded at build time, and URI variables encoded separately when expanded.A variant ofUriComponentsBuilder.encode()with a charset other than "UTF-8".static UriComponentsBuilderCreate a builder that is initialized with the given path.static UriComponentsBuilderCreate a builder that is initialized from the givenURI.static UriComponentsBuilderUriComponentsBuilder.fromUriString(String uri) Variant ofUriComponentsBuilder.fromUriString(String, ParserType)that defaults to theUriComponentsBuilder.ParserType.RFCparsing.static UriComponentsBuilderUriComponentsBuilder.fromUriString(String uri, UriComponentsBuilder.ParserType parserType) Create a builder that is initialized by parsing the given URI string.static UriComponentsBuilderUriComponentsBuilder.newInstance()Create a new, empty builder.UriComponentsBuilder.pathSegment(String... pathSegments) UriComponentsBuilder.port(int port) UriComponentsBuilder.queryParam(String name, @Nullable Object... values) UriComponentsBuilder.queryParam(String name, @Nullable Collection<?> values) UriComponentsBuilder.queryParamIfPresent(String name, Optional<?> value) UriComponentsBuilder.queryParams(@Nullable MultiValueMap<String, String> params) Add multiple query parameters and values.UriComponentsBuilder.replacePath(@Nullable String path) UriComponentsBuilder.replaceQuery(@Nullable String query) UriComponentsBuilder.replaceQueryParam(String name, Object... values) UriComponentsBuilder.replaceQueryParam(String name, @Nullable Collection<?> values) UriComponentsBuilder.replaceQueryParams(@Nullable MultiValueMap<String, String> params) Set the query parameter values after removing all existing ones.UriComponentsBuilder.schemeSpecificPart(String ssp) Set the URI scheme-specific-part.Initialize components of this builder from components of the given URI.UriComponentsBuilder.uriComponents(UriComponents uriComponents) Set or append individual URI components of this builder from the values of the givenUriComponentsinstance.UriComponentsBuilder.uriVariables(Map<String, Object> uriVariables) Configure URI variables to be expanded at build time.Methods in org.springframework.web.util with parameters of type UriComponentsBuilderModifier and TypeMethodDescriptionprotected abstract voidUriComponents.copyToUriComponentsBuilder(UriComponentsBuilder builder) Set all components of the given UriComponentsBuilder.Constructors in org.springframework.web.util with parameters of type UriComponentsBuilderModifierConstructorDescriptionVariant ofDefaultUriBuilderFactory(String)with aUriComponentsBuilder.protectedCreate a deep copy of the given UriComponentsBuilder.