Package com.tableau.hyperapi

# Class Endpoint

java.lang.Object
com.tableau.hyperapi.Endpoint

public final class Endpoint extends Object
An endpoint.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Endpoint(String connectionDescriptor, String userAgent)`
  Creates an endpoint.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getConnectionDescriptor()`
  Gets the connection descriptor.
  `String`
  `getUserAgent()`
  Gets the user agent.

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Endpoint

    public Endpoint(String connectionDescriptor, String userAgent)
    Creates an endpoint.
    Parameters:
      `connectionDescriptor` - A Tableau endpoint descriptor of the format "tab.protocol://address".
      `userAgent` - A user agent string, which will be used in telemetry (if enabled) and logging.

- ## Method Details

  - ### getConnectionDescriptor

    public String getConnectionDescriptor()
    Gets the connection descriptor.
    Returns:
      The connection descriptor.

  - ### getUserAgent

    public String getUserAgent()
    Gets the user agent.
    Returns:
      The user agent.