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 TypeArg<UriTemplate> |
__TYPE_ARG |
| Constructor and Description |
|---|
UriTemplate(Object delegate) |
UriTemplate(io.vertx.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,
io.vertx.uritemplate.ExpandOptions options)
Expand this template to a string.
|
io.vertx.uritemplate.UriTemplate |
getDelegate() |
int |
hashCode() |
static UriTemplate |
newInstance(io.vertx.uritemplate.UriTemplate arg) |
static UriTemplate |
of(String uri)
Create a template from a string
uri. |
String |
toString() |
public static final TypeArg<UriTemplate> __TYPE_ARG
public UriTemplate(io.vertx.uritemplate.UriTemplate delegate)
public UriTemplate(Object delegate)
public io.vertx.uritemplate.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 variablesvariablespublic String expandToString(Variables variables, io.vertx.uritemplate.ExpandOptions options)
variables - the variablesoptions - the options to control template expansionvariablespublic static UriTemplate newInstance(io.vertx.uritemplate.UriTemplate arg)
Copyright © 2022 Eclipse. All rights reserved.