public class UserAgent extends Object
UserAgent| Modifier and Type | Class and Description |
|---|---|
static class |
UserAgent.Builder |
| Constructor and Description |
|---|
UserAgent(String userAgentString)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static UserAgent |
extractUserAgent(javax.servlet.http.HttpServletRequest request) |
static UserAgent |
extractUserAgentSafely(javax.servlet.http.HttpServletRequest request) |
eu.bitwalker.useragentutils.Browser |
getBrowser() |
eu.bitwalker.useragentutils.Version |
getBrowserVersion()
Delegate method
Detects the detailed version information of the browser.
|
eu.bitwalker.useragentutils.DeviceType |
getDeviceType() |
protected static int |
getIntegerParameter(String argument,
int defaultValue)
reading valid integer parameter
|
eu.bitwalker.useragentutils.OperatingSystem |
getOperatingSystem() |
VersionedOS |
getOS() |
String |
getUserAgentString() |
UserAgentVersion |
getVersion() |
int |
hashCode() |
boolean |
isAndroid() |
boolean |
isChromeForIOS() |
boolean |
isDumbPhone() |
boolean |
isIOS() |
boolean |
isMobileDevice() |
boolean |
isPhone()
Mobile devices that are not tablets are regarded as phones.
|
boolean |
isSmartPhone() |
boolean |
isTablet()
Determines whether user agent is a tablet
|
boolean |
isWindowsPhone() |
static UserAgent.Builder |
newBuilder() |
static UserAgent |
parseUserAgentString(String userAgentString) |
static UserAgent |
parseUserAgentStringSafely(String userAgentString) |
String |
toString() |
@Deprecated public UserAgent(@Nonnull String userAgentString)
@Nonnull public eu.bitwalker.useragentutils.Browser getBrowser()
@Nonnull public static UserAgent extractUserAgent(@Nonnull javax.servlet.http.HttpServletRequest request)
@Nonnull public static UserAgent parseUserAgentString(@Nullable String userAgentString)
@Nonnull public static UserAgent extractUserAgentSafely(@Nonnull javax.servlet.http.HttpServletRequest request)
@Nonnull public static UserAgent parseUserAgentStringSafely(@Nullable String userAgentString)
@Nonnull public eu.bitwalker.useragentutils.Version getBrowserVersion()
@Nonnull public UserAgentVersion getVersion()
@Nonnull public eu.bitwalker.useragentutils.OperatingSystem getOperatingSystem()
@Nonnull public VersionedOS getOS()
@Nonnull public eu.bitwalker.useragentutils.DeviceType getDeviceType()
public boolean isTablet()
public boolean isIOS()
public boolean isChromeForIOS()
public boolean isAndroid()
public boolean isWindowsPhone()
public boolean isMobileDevice()
public boolean isSmartPhone()
public boolean isPhone()
public boolean isDumbPhone()
public static UserAgent.Builder newBuilder()
protected static int getIntegerParameter(String argument, int defaultValue)
argument - expected valuedefaultValue - default valueCopyright © 2019. All rights reserved.