Class UserAgentUtility

java.lang.Object
io.deephaven.client.grpc.UserAgentUtility

public final class UserAgentUtility extends Object
  • Constructor Details

    • UserAgentUtility

      public UserAgentUtility()
  • Method Details

    • userAgent

      public static String userAgent(List<String> properties)
      Constructs a grpc user-agent of the form grpc-java/<grpc-java-version> or grpc-java/<grpc-java-version> (prop1; ...; propN).
      Parameters:
      properties - the properties
      Returns:
      the user-agent
      See Also:
    • versionProperty

      public static String versionProperty(String name, String version)
      Constructs a version property in the grpc user-agent style.
      Parameters:
      name - the name
      version - the version
      Returns:
      the version property
    • versionProperty

      public static String versionProperty(String name, Class<?> clazz)
      Constructs a version property in the grpc user-agent style. Uses clazz.getPackage().getImplementationVersion() as the version string.
      Parameters:
      name - the name
      clazz - the class to take the version from
      Returns:
      the version property