Interface BaseUrl

All Superinterfaces:
AbsoluteUri, AbsoluteUrl, Normalisable<AbsoluteUri>, org.wiremock.stringparser.ParsedString, ServersideAbsoluteUrl, Uri, Url, UrlWithAuthority
All Known Subinterfaces:
Origin
All Known Implementing Classes:
BaseUrlValue

public interface BaseUrl extends ServersideAbsoluteUrl
A base url is a url whose path is either empty or ends with a slash, and which has neither a query nor a fragment.

You can always resolve a relative path (and query and fragment) onto it and it will effectively be appended to the base url:

  • https://example.com resolve some/path?q#f == https://example.com/some/path?q#f
  • https://example.com/base/path/ resolve some/path?q#f == https://example.com/base/path/some/path?q#f