Package io.deephaven.client.grpc
Class UserAgentUtility
java.lang.Object
io.deephaven.client.grpc.UserAgentUtility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringConstructs a grpc user-agent of the formgrpc-java/<grpc-java-version>orgrpc-java/<grpc-java-version> (prop1; ...; propN).static StringversionProperty(String name, Class<?> clazz) Constructs a version property in the grpc user-agent style.static StringversionProperty(String name, String version) Constructs a version property in the grpc user-agent style.
-
Constructor Details
-
UserAgentUtility
public UserAgentUtility()
-
-
Method Details
-
userAgent
Constructs a grpc user-agent of the formgrpc-java/<grpc-java-version>orgrpc-java/<grpc-java-version> (prop1; ...; propN).- Parameters:
properties- the properties- Returns:
- the user-agent
- See Also:
-
versionProperty
Constructs a version property in the grpc user-agent style.- Parameters:
name- the nameversion- the version- Returns:
- the version property
-
versionProperty
Constructs a version property in the grpc user-agent style. Usesclazz.getPackage().getImplementationVersion()as the version string.- Parameters:
name- the nameclazz- the class to take the version from- Returns:
- the version property
-