public class UriTemplate extends Object
A template is immutable and thread safe, it can be safely shared between threads after its creation.
If you are sharing a template as a static variables, keep in mind that of(java.lang.String)
can fail and create
a classloading issue.
original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<UriTemplate> |
__TYPE_ARG |
Constructor and Description |
---|
UriTemplate(Object delegate) |
UriTemplate(UriTemplate delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
expandToString(Variables variables)
Expand this template to a string.
|
String |
expandToString(Variables variables,
ExpandOptions options)
Expand this template to a string.
|
UriTemplate |
getDelegate() |
int |
hashCode() |
static UriTemplate |
newInstance(UriTemplate arg) |
static UriTemplate |
of(String uri)
Create a template from a string
uri . |
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<UriTemplate> __TYPE_ARG
public UriTemplate(UriTemplate delegate)
public UriTemplate(Object delegate)
public UriTemplate getDelegate()
public static UriTemplate of(String uri)
uri
.
The string uri
is validated and parsed, invalid inputs are rejected with a IllegalArgumentException
.
uri
- the template stringpublic String expandToString(Variables variables)
variables
- the variablesvariables
public String expandToString(Variables variables, ExpandOptions options)
variables
- the variablesoptions
- the options to control template expansionvariables
public static UriTemplate newInstance(UriTemplate arg)
Copyright © 2023 Eclipse. All rights reserved.