public class HttpClientUriBuilder extends Object implements UriBuilder
| Constructor and Description |
|---|
HttpClientUriBuilder() |
| Modifier and Type | Method and Description |
|---|---|
HttpClientUriBuilder |
appendPath(String path)
Append to the path of the URI.
|
URI |
build(Object... params)
Builds the URI based on the URI members previously load.
|
HttpClientUriBuilder |
fromUri(String baseUri)
Sets the base uri that the builder will use to start constructing the uri from.
|
HttpClientUriBuilder |
queryParam(String name,
String value)
Add a query string parameter to the URI.
|
public HttpClientUriBuilder fromUri(String baseUri)
UriBuilderfromUri in interface UriBuilderbaseUri - specifies the base uripublic HttpClientUriBuilder appendPath(String path)
UriBuilderappendPath in interface UriBuilderpath - specifies the path to be appended to the URI.public HttpClientUriBuilder queryParam(String name, String value)
UriBuilderqueryParam in interface UriBuildername - specifies the name of the query string param.value - specifies the value of the query string param.public URI build(Object... params)
UriBuilderbuild in interface UriBuilderparams - specifies a list of objects representing the values of the placeholders within the path.Copyright © 2014–2023 MuleSoft, Inc.. All rights reserved.