RootUriTemplateHandler

UriTemplateHandler to set the root for URI that starts with '/'.

Author

Phillip Webb

Scott Frederick

Since

1.4.0

Inheritors

Constructors

Link copied to clipboard
constructor(rootUri: String)
Create a new RootUriTemplateHandler instance.
constructor(rootUri: String, handler: UriTemplateHandler)
Create a new RootUriTemplateHandler instance.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun addTo(restTemplate: RestTemplate, rootUri: String): RootUriTemplateHandler
Add a RootUriTemplateHandler instance to the given RestTemplate.
Link copied to clipboard
open fun expand(uriTemplate: String, uriVariables: Array<Any>): URI
open fun expand(uriTemplate: String, uriVariables: Map<String, out Any>): URI
Link copied to clipboard
Derives a new RootUriTemplateHandler from this one, wrapping its delegate UriTemplateHandler by applying the given wrapper.