Package com.ngrok

Class Session.ClientInfo

  • Enclosing interface:
    Session

    public static class Session.ClientInfo
    extends Object
    Represents additional information about the client. Use it to describe your application. This library also injects its own client information, describing lower levels of the stack.
    • Constructor Detail

      • ClientInfo

        public ClientInfo​(String type,
                          String version,
                          String comments)
        Creates a new client information with a given type, version and comment.
        Parameters:
        type - the type of the client, required
        version - the version of the client, required
        comments - additional comments, optional
    • Method Detail

      • getType

        public String getType()
        Returns the type of this client.
        Returns:
        the type
      • getVersion

        public String getVersion()
        Returns the version of this client.
        Returns:
        the version
      • getComments

        public Optional<String> getComments()
        Returns the comments for this client.
        Returns:
        the comments