Package energy.trolie.client
Class TrolieHost
java.lang.Object
energy.trolie.client.TrolieHost
Holds all details needed to describe an HTTP connection to a TROLIE host. It is wrapper around HttpHost that
additionally allows for a common path for all TROLIE endpoints.
-
Constructor Summary
ConstructorsConstructorDescriptionTrolieHost
(String baseUrl) Create a TrolieHost from the base URL of the TROLIE server. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns true if the TROLIE server URL includes a base path
-
Constructor Details
-
TrolieHost
Create a TrolieHost from the base URL of the TROLIE server. A base path can optionally be included in the URL and will apply to all endpoints. For example, https://hostname and https://hostname/trolie-path are both valid.- Parameters:
baseUrl
- TROLIE server URL
-
-
Method Details
-
hasBasePath
public boolean hasBasePath()Returns true if the TROLIE server URL includes a base path- Returns:
- true if a base path is present
-