Package | Description |
---|---|
top.hmtools.javaWeb.userAgent |
http header useragent信息获取相关工具类
|
Modifier and Type | Method and Description |
---|---|
OperatingSystem |
OperatingSystem.getGroup() |
OperatingSystem |
UserAgentTools.getOperatingSystem()
获取客户端操作系统信息
必须在执行 UserAgent(String) 或者 UserAgent.parseUserAgent(String)后使用。 如果没有可用的信息,会返回null |
static OperatingSystem |
OperatingSystem.parseUserAgentString(String agentString)
Parses user agent string and returns the best match.
|
static OperatingSystem |
OperatingSystem.valueOf(short id)
Returns the enum constant of this type with the specified id.
|
static OperatingSystem |
OperatingSystem.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperatingSystem[] |
OperatingSystem.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.