Package com.groiss.gui
Class UserAgent
java.lang.Object
com.groiss.gui.UserAgent
- All Implemented Interfaces:
Serializable
This class useful for getting information about the user agent (i.e. the browser).
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructor with user agent string.Constructor with servlet request. -
Method Summary
-
Constructor Details
-
UserAgent
public UserAgent() -
UserAgent
Constructor with user agent string.- Parameters:
ag
- the string of header field User-Agent
-
UserAgent
Constructor with servlet request.- Parameters:
req
-
-
-
Method Details
-
isMobileReady
public boolean isMobileReady() -
isMobileClient
public boolean isMobileClient() -
setMobileClient
public void setMobileClient(boolean mobileClient) -
isSafari
public boolean isSafari() -
isIE
public boolean isIE() -
isIE11
public boolean isIE11() -
isEdge
public boolean isEdge() -
isFirefox
public boolean isFirefox() -
getUserAgent
- Parameters:
req
-- Returns:
- the user agent the request is coming from
-
isChrome
public boolean isChrome() -
getVersion
public float getVersion() -
toString
-