com.groiss.gui
Class UserAgent

java.lang.Object
  extended by com.groiss.gui.UserAgent

public class UserAgent
extends java.lang.Object

Author:
Andriy Vyedyeneyev

Constructor Summary
UserAgent()
           
UserAgent(javax.servlet.http.HttpServletRequest req)
           
 
Method Summary
static UserAgent getUserAgent(javax.servlet.http.HttpServletRequest req)
           
 float getVersion()
           
 boolean isFirefox()
           
 boolean isIE()
           
 boolean isMobileClient()
           
 boolean isSafari()
           
 void setMobileClient(boolean mobileClient)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserAgent

public UserAgent()

UserAgent

public UserAgent(javax.servlet.http.HttpServletRequest req)
Method Detail

isMobileClient

public boolean isMobileClient()

setMobileClient

public void setMobileClient(boolean mobileClient)

isSafari

public boolean isSafari()

isIE

public boolean isIE()

isFirefox

public boolean isFirefox()

getUserAgent

public static UserAgent getUserAgent(javax.servlet.http.HttpServletRequest req)
Parameters:
req -
Returns:
the user agent the request is coming from

getVersion

public float getVersion()


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.