Example usage for Java org.springframework.web.servlet.support ServletUriComponentsBuilder fields, constructors, methods, implement or subclass
The text is from its open source code.
UriComponents | build() Build a UriComponents instance from the various components contained in this builder. |
UriComponents | buildAndExpand(Map Build a UriComponents instance and replaces URI template variables with the values from a map. |
UriComponentsBuilder | fragment(@Nullable String fragment) Set the URI fragment. |
ServletUriComponentsBuilder | fromContextPath(HttpServletRequest request) Prepare a builder from the host, port, scheme, and context path of the given HttpServletRequest. |
ServletUriComponentsBuilder | fromCurrentContextPath() Same as #fromContextPath(HttpServletRequest) except the request is obtained through RequestContextHolder . |
ServletUriComponentsBuilder | fromCurrentRequest() Same as #fromRequest(HttpServletRequest) except the request is obtained through RequestContextHolder . |
ServletUriComponentsBuilder | fromCurrentRequestUri() Same as #fromRequestUri(HttpServletRequest) except the request is obtained through RequestContextHolder . |
ServletUriComponentsBuilder | fromCurrentServletMapping() Same as #fromServletMapping(HttpServletRequest) except the request is obtained through RequestContextHolder . |
ServletUriComponentsBuilder | fromRequest(HttpServletRequest request) Prepare a builder by copying the scheme, host, port, path, and query string of an HttpServletRequest. |
ServletUriComponentsBuilder | fromServletMapping(HttpServletRequest request) Prepare a builder from the host, port, scheme, context path, and servlet mapping of the given HttpServletRequest. |
UriComponentsBuilder | host(@Nullable String host) Set the URI host. |
UriComponentsBuilder | path(String path) Append the given path to the existing path of this builder. |
UriComponentsBuilder | port(int port) Set the URI port. |
UriComponentsBuilder | replacePath(@Nullable String path) Set the path of this builder overriding all existing path and path segment values. |
UriComponentsBuilder | replaceQuery(@Nullable String query) Set the query of this builder overriding all existing query parameters. |
UriComponentsBuilder | replaceQueryParam(String name, Object... values) Set the query parameter values overriding all existing query values for the same parameter. |
UriComponentsBuilder | scheme(@Nullable String scheme) Set the URI scheme. |