Package com.atlan.api

Class AbstractEndpoint

java.lang.Object
com.atlan.api.AbstractEndpoint
Direct Known Subclasses:
AtlasEndpoint, ChronosEndpoint, HekaEndpoint, HeraclesEndpoint, ImpersonationEndpoint

public abstract class AbstractEndpoint extends Object
  • Field Details

  • Constructor Details

    • AbstractEndpoint

      protected AbstractEndpoint(AtlanClient client)
  • Method Details

    • getBaseUrl

      protected String getBaseUrl(String service, String prefix) throws ApiConnectionException
      Retrieve the base URL to use to access the endpoint.
      Parameters:
      service - the internal service used to access the endpoint
      prefix - the prefix used for routing external access to the endpoint
      Returns:
      the base URL (including any prefix) to use to access the API endpoint
      Throws:
      ApiConnectionException - if no base URL has been defined, and the SDK has not been configured for internal access