Class AstraApiEndpoint

java.lang.Object
com.datastax.astra.internal.api.AstraApiEndpoint

public class AstraApiEndpoint extends Object
Create an endpoint to connect to a database.
  • Constructor Details

    • AstraApiEndpoint

      public AstraApiEndpoint()
      Default constructor.
    • AstraApiEndpoint

      public AstraApiEndpoint(UUID databaseId, String databaseRegion, com.dtsx.astra.sdk.utils.AstraEnvironment env)
      Constructor with chunk of the URL.
      Parameters:
      databaseId - database identifier
      databaseRegion - database region
      env - environment
  • Method Details

    • parse

      public static AstraApiEndpoint parse(String endpointUrl)
      Parse an endpoint URL to know information on the DB.
      Parameters:
      endpointUrl - endpoint URL copy from UI
      Returns:
      astra db endpoint parsed
    • getApiEndPoint

      public String getApiEndPoint()
      Return the endpoint URL based on the chunks.
      Returns:
      endpoint URL.
    • getOriginalEndPoint

      public String getOriginalEndPoint()
      Return the endpoint URL based on the chunks.
      Returns:
      endpoint URL.