com.liferay.portal.kernel.servlet
Class BrowserSnifferUtil
java.lang.Object
com.liferay.portal.kernel.servlet.BrowserSnifferUtil
public class BrowserSnifferUtil
- extends Object
See http://www.zytrax.com/tech/web/browser_ids.htm for examples.
Method Summary |
static boolean |
acceptsGzip(javax.servlet.http.HttpServletRequest request)
|
static String |
getBrowserId(javax.servlet.http.HttpServletRequest request)
|
static BrowserSniffer |
getBrowserSniffer()
|
static float |
getMajorVersion(javax.servlet.http.HttpServletRequest request)
|
static String |
getRevision(javax.servlet.http.HttpServletRequest request)
|
static String |
getVersion(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isAir(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isChrome(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isFirefox(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isGecko(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isIe(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isIphone(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isLinux(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isMac(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isMobile(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isMozilla(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isOpera(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isRtf(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isSafari(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isSun(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isWap(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isWapXhtml(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isWebKit(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isWindows(javax.servlet.http.HttpServletRequest request)
|
static boolean |
isWml(javax.servlet.http.HttpServletRequest request)
|
void |
setBrowserSniffer(BrowserSniffer browserSniffer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrowserSnifferUtil
public BrowserSnifferUtil()
acceptsGzip
public static boolean acceptsGzip(javax.servlet.http.HttpServletRequest request)
getBrowserId
public static String getBrowserId(javax.servlet.http.HttpServletRequest request)
getBrowserSniffer
public static BrowserSniffer getBrowserSniffer()
getMajorVersion
public static float getMajorVersion(javax.servlet.http.HttpServletRequest request)
getRevision
public static String getRevision(javax.servlet.http.HttpServletRequest request)
getVersion
public static String getVersion(javax.servlet.http.HttpServletRequest request)
isAir
public static boolean isAir(javax.servlet.http.HttpServletRequest request)
isChrome
public static boolean isChrome(javax.servlet.http.HttpServletRequest request)
isFirefox
public static boolean isFirefox(javax.servlet.http.HttpServletRequest request)
isGecko
public static boolean isGecko(javax.servlet.http.HttpServletRequest request)
isIe
public static boolean isIe(javax.servlet.http.HttpServletRequest request)
isIphone
public static boolean isIphone(javax.servlet.http.HttpServletRequest request)
isLinux
public static boolean isLinux(javax.servlet.http.HttpServletRequest request)
isMac
public static boolean isMac(javax.servlet.http.HttpServletRequest request)
isMobile
public static boolean isMobile(javax.servlet.http.HttpServletRequest request)
isMozilla
public static boolean isMozilla(javax.servlet.http.HttpServletRequest request)
isOpera
public static boolean isOpera(javax.servlet.http.HttpServletRequest request)
isRtf
public static boolean isRtf(javax.servlet.http.HttpServletRequest request)
isSafari
public static boolean isSafari(javax.servlet.http.HttpServletRequest request)
isSun
public static boolean isSun(javax.servlet.http.HttpServletRequest request)
isWap
public static boolean isWap(javax.servlet.http.HttpServletRequest request)
isWapXhtml
public static boolean isWapXhtml(javax.servlet.http.HttpServletRequest request)
isWebKit
public static boolean isWebKit(javax.servlet.http.HttpServletRequest request)
isWindows
public static boolean isWindows(javax.servlet.http.HttpServletRequest request)
isWml
public static boolean isWml(javax.servlet.http.HttpServletRequest request)
setBrowserSniffer
public void setBrowserSniffer(BrowserSniffer browserSniffer)