# Uses of Class
org.springframework.web.servlet.support.ServletUriComponentsBuilder

Packages that use ServletUriComponentsBuilder
Package
Description
org.springframework.web.servlet.support
Support classes for Spring's web MVC framework.

## Uses of ServletUriComponentsBuilder in org.springframework.web.servlet.support

Methods in org.springframework.web.servlet.support that return ServletUriComponentsBuilder
Modifier and Type
Method
Description
`ServletUriComponentsBuilder`
ServletUriComponentsBuilder.`cloneBuilder()`
`static ServletUriComponentsBuilder`
ServletUriComponentsBuilder.`fromContextPath(HttpServletRequest request)`
Prepare a builder from the host, port, scheme, and context path of the given HttpServletRequest.
`static ServletUriComponentsBuilder`
ServletUriComponentsBuilder.`fromCurrentContextPath()`
Same as `fromContextPath(HttpServletRequest)` except the request is obtained through `RequestContextHolder`.
`static ServletUriComponentsBuilder`
ServletUriComponentsBuilder.`fromCurrentRequest()`
Same as `fromRequest(HttpServletRequest)` except the request is obtained through `RequestContextHolder`.
`static ServletUriComponentsBuilder`
ServletUriComponentsBuilder.`fromCurrentRequestUri()`
Same as `fromRequestUri(HttpServletRequest)` except the request is obtained through `RequestContextHolder`.
`static ServletUriComponentsBuilder`
ServletUriComponentsBuilder.`fromCurrentServletMapping()`
Same as `fromServletMapping(HttpServletRequest)` except the request is obtained through `RequestContextHolder`.
`static ServletUriComponentsBuilder`
ServletUriComponentsBuilder.`fromRequest(HttpServletRequest request)`
Prepare a builder by copying the scheme, host, port, path, and query string of an HttpServletRequest.
`static ServletUriComponentsBuilder`
ServletUriComponentsBuilder.`fromRequestUri(HttpServletRequest request)`
Prepare a builder from the host, port, scheme, and path (but not the query) of the HttpServletRequest.
`static ServletUriComponentsBuilder`
ServletUriComponentsBuilder.`fromServletMapping(HttpServletRequest request)`
Prepare a builder from the host, port, scheme, context path, and servlet mapping of the given HttpServletRequest.
Constructors in org.springframework.web.servlet.support with parameters of type ServletUriComponentsBuilder
Modifier
Constructor
Description
`protected`
`ServletUriComponentsBuilder(ServletUriComponentsBuilder other)`
Create a deep copy of the given ServletUriComponentsBuilder.