Package com.teamdev.jxbrowser.net
Interface UserAgentBrand
public interface UserAgentBrand
A user-agent brand information.
- Since:
- 8.4.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic UserAgentBrandCreates a newUserAgentBrandinstance with the given brand and version.default Stringname()Returns the name of the user-agent or brand (e.g.default Stringversion()Returns the version of the brand (e.g.
-
Method Details
-
create
Creates a newUserAgentBrandinstance 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 thebrandorversionis empty or blank
-
name
Returns the name of the user-agent or brand (e.g. "Chromium", "Google Chrome", "Edge"). -
version
Returns the version of the brand (e.g. "133", "133.0.4472.124").
-