Class TrolieHost

java.lang.Object
energy.trolie.client.TrolieHost

public class TrolieHost extends Object
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 Details

    • TrolieHost

      public TrolieHost(String baseUrl)
      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