Package | Description |
---|---|
top.hmtools.javaWeb.userAgent |
http header useragent信息获取相关工具类
|
Modifier and Type | Method and Description |
---|---|
Browser |
UserAgentTools.getBrowser()
获取客户端浏览器信息
必须在执行 UserAgent(String) 或者 UserAgent.parseUserAgent(String)后使用。 如果没有可用的信息,会返回null |
Browser |
Browser.getGroup() |
static Browser |
Browser.parseUserAgentString(String agentString)
Iterates over all Browsers to compare the browser signature with
the user agent string.
|
static Browser |
Browser.valueOf(short id)
Returns the enum constant of this type with the specified id.
|
static Browser |
Browser.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Browser[] |
Browser.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Constructor and Description |
---|
UserAgentTools(OperatingSystem operatingSystem,
Browser browser)
构造函数。
根据操作系统(枚举),浏览器(枚举)初始化userAgentTools(useragent信息)对象实例 |
Copyright © 2018. All rights reserved.