public class UserAgent extends Object implements Serializable
Constructor and Description |
---|
UserAgent() |
UserAgent(HttpServletRequest req)
Constructor with servlet request.
|
UserAgent(String ag)
Constructor with user agent string.
|
Modifier and Type | Method and Description |
---|---|
static UserAgent |
getUserAgent(HttpServletRequest req) |
float |
getVersion() |
boolean |
isChrome() |
boolean |
isEdge() |
boolean |
isFirefox() |
boolean |
isIE() |
boolean |
isIE11() |
boolean |
isMobileClient() |
boolean |
isMobileReady() |
boolean |
isSafari() |
void |
setMobileClient(boolean mobileClient) |
String |
toString() |
public UserAgent()
public UserAgent(String ag)
ag
- the string of header field User-Agentpublic UserAgent(HttpServletRequest req)
req
- public boolean isMobileReady()
public boolean isMobileClient()
public void setMobileClient(boolean mobileClient)
public boolean isSafari()
public boolean isIE()
public boolean isIE11()
public boolean isEdge()
public boolean isFirefox()
public static UserAgent getUserAgent(HttpServletRequest req)
req
- public boolean isChrome()
public float getVersion()
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.