Interface UserAgentBrand


public interface UserAgentBrand
A user-agent brand information.
Since:
8.4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String name, String version)
    Creates a new UserAgentBrand instance with the given brand and version.
    default String
    Returns the name of the user-agent or brand (e.g.
    default String
    Returns the version of the brand (e.g.
  • Method Details

    • create

      static UserAgentBrand create(String name, String version)
      Creates a new UserAgentBrand instance with the given brand and version.
      Parameters:
      name - the name of the user-agent or brand (e.g. "Chromium", "Google Chrome", "Edge")
      version - the version of the brand (e.g. "133.0.4472.124", "133")
      Throws:
      IllegalArgumentException - if the brand or version is empty or blank
    • name

      default String name()
      Returns the name of the user-agent or brand (e.g. "Chromium", "Google Chrome", "Edge").
    • version

      default String version()
      Returns the version of the brand (e.g. "133", "133.0.4472.124").