Class ApiClientMetadata

  • All Implemented Interfaces:
    java.io.Serializable

    public class ApiClientMetadata
    extends ClientMetadata
    Data class to hold information about a Genie client whether it is an API client or an Agent.
    Since:
    4.0.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ApiClientMetadata​(java.lang.String hostname, java.lang.String userAgent)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> getUserAgent()
      Get the user agent string for the client.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ApiClientMetadata

        public ApiClientMetadata​(@Nullable
                                 java.lang.String hostname,
                                 @Nullable
                                 java.lang.String userAgent)
        Constructor.
        Parameters:
        hostname - The hostname of the client that sent the API request
        userAgent - The user agent string
    • Method Detail

      • getUserAgent

        public java.util.Optional<java.lang.String> getUserAgent()
        Get the user agent string for the client.
        Returns:
        The user agent string if there is one wrapped in an Optional