open class DefaultUriBuilderFactory : UriBuilderFactory
Default implementation of UriBuilderFactory providing options to pre-configure all UriBuilder instances with common properties such as a base URI, encoding mode, and default URI variables.
Uses UriComponentsBuilder for URI building.
Author
Rossen Stoyanchev
Since
5.0
See Also
UriComponentsBuilder
DefaultUriBuilderFactory()
Default constructor without a base URI. The target address must be specified on each UriBuilder. DefaultUriBuilderFactory(baseUriTemplate: String)
Constructor with a base URI. The given URI template is parsed via DefaultUriBuilderFactory(baseUri: UriComponentsBuilder)
Variant of |
open fun builder(): UriBuilder |
|
open fun expand(uriTemplate: String, uriVars: MutableMap<String, *>): URIopen fun expand(uriTemplate: String, vararg uriVars: Any): URI |
|
open fun getDefaultUriVariables(): MutableMap<String, *>
Return the configured default URI variable values. |
|
open fun getEncodingMode(): EncodingMode
Return the configured encoding mode. |
|
open fun setDefaultUriVariables(defaultUriVariables: MutableMap<String, *>): Unit
Provide default URI variable values to use when expanding URI templates with a Map of variables. |
|
open fun setEncodingMode(encodingMode: EncodingMode): Unit
Specify the encoding mode to use when building URIs:
By default this is set to |
|
open fun setParsePath(parsePath: Boolean): Unit
Whether to parse the path into path segments for the URI string passed into Setting this property to By default this is set to |
|
open fun shouldParsePath(): Boolean
Whether the handler is configured to parse the path into path segments. |
|
open fun uriString(uriTemplate: String): UriBuilder |