Package eu.acclimatize.unison
Class BaseURIBuilder
java.lang.Object
eu.acclimatize.unison.BaseURIBuilder
Builds URIs for use with HATEOAS/HAL and the location header when new
resources are created. A forwarded filter bean created in
UnisonServerApplication ensures that the schema, server name, and
port reflect the correct values if requests are forwarded via a proxy.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BaseURIBuilder
public BaseURIBuilder()
-
-
Method Details
-
build
Creates a base URI.- Parameters:
scheme- The scheme of local server or forwarding proxy.serverName- The name of local server or forwarding proxy.port- The port of local server or forwarding proxy.contextPath- The context path, which precedes the servlet path. The context path may be an empty string.- Returns:
- The built URI.
-