java.lang.Object
org.miaixz.bus.http.metric.anget.UserAgent
org.miaixz.bus.http.metric.anget.Engine
Represents a browser rendering engine, such as Trident, WebKit, or Gecko.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetVersion(String userAgentString) Gets the version of the browser engine from a User-Agent string.
-
Field Details
-
UNKNOWN
Constant for an unknown engine. -
ENGINES
A list of supported engine types.
-
-
Constructor Details
-
Engine
Constructs a newEngineinstance.- Parameters:
name- The name of the engine.rule- The keyword or expression to match in the User-Agent string.
-
-
Method Details
-
getVersion
Gets the version of the browser engine from a User-Agent string.- Parameters:
userAgentString- The User-Agent string.- Returns:
- The version string, or null if not found.
-