LocalHostUriTemplateHandler

UriTemplateHandler will automatically prefix relative URIs with localhost:${local.server.port}.

Author

Phillip Webb

Andy Wilkinson

Eddú Meléndez

Madhura Bhave

Since

1.4.0

Constructors

Link copied to clipboard
constructor(environment: Environment)
Create a new LocalHostUriTemplateHandler that will generate http URIs using the given environment to determine the context path and port.
constructor(environment: Environment, scheme: String)
Create a new LocalHostUriTemplateHandler that will generate URIs with the given scheme and use the given environment to determine the context-path and port.
constructor(environment: Environment, scheme: String, handler: UriTemplateHandler)
Create a new LocalHostUriTemplateHandler that will generate URIs with the given scheme, use the given environment to determine the context-path and port and delegate to the given template handler.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun expand(uriTemplate: String, uriVariables: Map<String, out Any>): URI
Link copied to clipboard
open fun getRootUri(): String