public class URIBuilder extends Object
Modifier and Type | Method and Description |
---|---|
URI |
build()
Builds the URI
|
static URIBuilder |
fromUri(String baseUri)
Creates a URIBuilder with a base URI string as the starting point
|
static URIBuilder |
fromUri(URI baseUri)
Creates a URIBuilder with a base URI string as the starting point
|
URIBuilder |
queryParam(String name,
String value)
Adds a query parameter to the URI
|
URIBuilder |
queryParams(MultiValueMap<String,String> params)
Adds a query parameters to the URI
|
public static URIBuilder fromUri(String baseUri)
baseUri
- a String URI to use as a starting point for the builderpublic static URIBuilder fromUri(URI baseUri)
baseUri
- a URI to use as a starting point for the builderpublic URIBuilder queryParam(String name, String value)
name
- the parameter namevalue
- the parameter valuepublic URIBuilder queryParams(MultiValueMap<String,String> params)
params
- a Map of parameters to add the the URIpublic URI build()