Example usage for Java org.springframework.web.util UriComponentsBuilder 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 | build(boolean encoded) Build a UriComponents instance from the various components contained in this builder. |
URI | build(Object... uriVariables) |
URI | build(Map |
UriComponents | buildAndExpand(Map Build a UriComponents instance and replaces URI template variables with the values from a map. |
UriComponents | buildAndExpand(Object... uriVariableValues) Build a UriComponents instance and replaces URI template variables with the values from an array. |
Object | clone() Public declaration of Object's clone() method. |
UriComponentsBuilder | cloneBuilder() Clone this UriComponentsBuilder . |
UriComponentsBuilder | fromHttpRequest(HttpRequest request) Create a new UriComponents object from the URI associated with the given HttpRequest while also overlaying with values from the headers "Forwarded" (RFC 7239), or "X-Forwarded-Host", "X-Forwarded-Port", and "X-Forwarded-Proto" if "Forwarded" is not found. |
UriComponentsBuilder | fromHttpUrl(String httpUrl) Create a URI components builder from the given HTTP URL String. |
UriComponentsBuilder | fromPath(String path) Create a builder that is initialized with the given path. |
UriComponentsBuilder | fromUri(URI uri) Create a builder that is initialized with the given URI . |
UriComponentsBuilder | fromUriString(String uri) Create a builder that is initialized with the given URI string. |
UriComponentsBuilder | newInstance() Create a new, empty builder. |
UriComponentsBuilder | path(String path) Append the given path to the existing path of this builder. |
UriComponentsBuilder | pathSegment(String... pathSegments) Append path segments to the existing path. |
UriComponentsBuilder | query(@Nullable String query) Append the given query to the existing query of this builder. |
UriComponentsBuilder | queryParam(String name, Object... values) Append the given query parameter to the existing query parameters. |
UriComponentsBuilder | queryParam(String name, @Nullable Collection> values) Append the given query parameter to the existing query parameters. |
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 | replaceQueryParam(String name, @Nullable Collection> values) Set the query parameter values overriding all existing query values for the same parameter. |
String | toUriString() Build a URI String. |
UriComponentsBuilder | uri(URI uri) Initialize components of this builder from components of the given URI. |