public final class UrlBuilder extends Object
UriTemplate
and a set
of uri parameters addUriParameter(String, Object)
.Modifier and Type | Method and Description |
---|---|
UrlBuilder |
addUriParameter(Object value)
If the uri template just contains one parameter, the value can be set
without providing the parameters name.
|
UrlBuilder |
addUriParameter(String name,
Object value)
Adds the given uri parameter value to this builder.
|
String |
build()
Builds the url.
|
boolean |
equals(Object o) |
int |
hashCode() |
static UrlBuilder |
of(UriTemplate uriTemplate)
Creates a new builder from the given parameter.
|
String |
toString() |
public UrlBuilder addUriParameter(Object value)
value
- the parameter valuepublic UrlBuilder addUriParameter(String name, Object value)
name
- the parameter namevalue
- the parameter valuepublic String build()
public static UrlBuilder of(UriTemplate uriTemplate)
uriTemplate
- the uri template