Interface BaseUrl
public interface BaseUrl
A base URL that can be used to connect to the running server.
- Since:
- 4.0.0
- Author:
- Phillip Webb
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
isHttps()
Return if the URL will ultimately resolve to an HTTPS address.static BaseUrl
Factory method to create a newBaseUrl
.static BaseUrl
Factory method to create a newBaseUrl
.resolve()
Resolve the URL to a string.default String
Resolve the URL to a string.
-
Field Details
-
DEFAULT
Default base URL suitable for mock environments.
-
-
Method Details
-
isHttps
boolean isHttps()Return if the URL will ultimately resolve to an HTTPS address.- Returns:
- if the URL is HTTPS
-
resolve
-
resolve
String resolve()Resolve the URL to a string. This method is called as late as possible to ensure that an local port information is available.- Returns:
- the resolved base URL
-
of
-
of
-