Package io.vertx.mutiny.uritemplate
Class UriTemplate
java.lang.Object
io.vertx.mutiny.uritemplate.UriTemplate
- All Implemented Interfaces:
MutinyDelegate
A URI template that follows the rfc6570 level 4.
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(String) can fail and create
a classloading issue.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Julien Viet
- See Also:
-
UriTemplate
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUriTemplate(io.vertx.uritemplate.UriTemplate delegate) Create a new instance ofUriTemplatedelegating to the given (non-null) instance ofUriTemplate.UriTemplate(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexpandToString(Variables variables) Expand this template to a string.expandToString(Variables variables, io.vertx.uritemplate.ExpandOptions options) Expand this template to a string.io.vertx.uritemplate.UriTemplateGet the delegate instance.inthashCode()static UriTemplatenewInstance(io.vertx.uritemplate.UriTemplate delegate) Creates a new instance of theUriTemplate.static UriTemplateCreate a template from a stringuri.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
UriTemplate
public UriTemplate(io.vertx.uritemplate.UriTemplate delegate) Create a new instance ofUriTemplatedelegating to the given (non-null) instance ofUriTemplate. -
UriTemplate
-
-
Method Details
-
getDelegate
public io.vertx.uritemplate.UriTemplate getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
of
Create a template from a stringuri.The string
uriis validated and parsed, invalid inputs are rejected with aIllegalArgumentException.- Parameters:
uri- the template string- Returns:
- the template
- Throws:
when- the template
-
expandToString
Expand this template to a string.- Parameters:
variables- the variables- Returns:
- the string expansion of this template with the
variables
-
expandToString
Expand this template to a string.- Parameters:
variables- the variablesoptions- the options to control template expansion- Returns:
- the string expansion of this template with the
variables
-
newInstance
Creates a new instance of theUriTemplate. -
hashCode
public int hashCode() -
equals
-
toString
-