open class DefaultUriTemplateHandler : AbstractUriTemplateHandler
Default implementation of UriTemplateHandler based on the use of UriComponentsBuilder for expanding and encoding variables.
There are also several properties to customize how URI template handling is performed, including a baseUrl
to be used as a prefix for all URI templates and a couple of encoding related options — parsePath
and strictEncoding
respectively.
Author
Rossen Stoyanchev
Since
4.2
DefaultUriTemplateHandler()
Default implementation of UriTemplateHandler based on the use of UriComponentsBuilder for expanding and encoding variables. There are also several properties to customize how URI template handling is performed, including a |
open fun isStrictEncoding(): Boolean
Whether to strictly encode any character outside the unreserved set. |
|
open fun setParsePath(parsePath: Boolean): Unit
Whether to parse the path of a URI template string into path segments. If set to By default this is set to |
|
open fun setStrictEncoding(strictEncoding: Boolean): Unit
Whether to encode characters outside the unreserved set as defined in RFC 3986 Section 2. This ensures a URI variable value will not contain any characters with a reserved purpose. By default this is set to Note: this property supersedes the need to also set the |
|
open fun shouldParsePath(): Boolean
Whether the handler is configured to parse the path into path segments. |