com.liferay.portal.servlet
Class BrowserSnifferImpl
java.lang.Object
com.liferay.portal.servlet.BrowserSnifferImpl
- All Implemented Interfaces:
- BrowserSniffer
public class BrowserSnifferImpl
- extends Object
- implements BrowserSniffer
See http://www.zytrax.com/tech/web/browser_ids.htm for examples.
Method Summary |
boolean |
acceptsGzip(javax.servlet.http.HttpServletRequest request)
|
protected String |
getAccept(javax.servlet.http.HttpServletRequest request)
|
String |
getBrowserId(javax.servlet.http.HttpServletRequest request)
|
float |
getMajorVersion(javax.servlet.http.HttpServletRequest request)
|
String |
getRevision(javax.servlet.http.HttpServletRequest request)
|
protected String |
getUserAgent(javax.servlet.http.HttpServletRequest request)
|
String |
getVersion(javax.servlet.http.HttpServletRequest request)
|
boolean |
isAir(javax.servlet.http.HttpServletRequest request)
|
boolean |
isChrome(javax.servlet.http.HttpServletRequest request)
|
boolean |
isFirefox(javax.servlet.http.HttpServletRequest request)
|
boolean |
isGecko(javax.servlet.http.HttpServletRequest request)
|
boolean |
isIe(javax.servlet.http.HttpServletRequest request)
|
boolean |
isIphone(javax.servlet.http.HttpServletRequest request)
|
boolean |
isLinux(javax.servlet.http.HttpServletRequest request)
|
boolean |
isMac(javax.servlet.http.HttpServletRequest request)
|
boolean |
isMobile(javax.servlet.http.HttpServletRequest request)
|
boolean |
isMozilla(javax.servlet.http.HttpServletRequest request)
|
boolean |
isOpera(javax.servlet.http.HttpServletRequest request)
|
boolean |
isRtf(javax.servlet.http.HttpServletRequest request)
|
boolean |
isSafari(javax.servlet.http.HttpServletRequest request)
|
boolean |
isSun(javax.servlet.http.HttpServletRequest request)
|
boolean |
isWap(javax.servlet.http.HttpServletRequest request)
|
boolean |
isWapXhtml(javax.servlet.http.HttpServletRequest request)
|
boolean |
isWebKit(javax.servlet.http.HttpServletRequest request)
|
boolean |
isWindows(javax.servlet.http.HttpServletRequest request)
|
boolean |
isWml(javax.servlet.http.HttpServletRequest request)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrowserSnifferImpl
public BrowserSnifferImpl()
acceptsGzip
public boolean acceptsGzip(javax.servlet.http.HttpServletRequest request)
- Specified by:
acceptsGzip
in interface BrowserSniffer
getBrowserId
public String getBrowserId(javax.servlet.http.HttpServletRequest request)
- Specified by:
getBrowserId
in interface BrowserSniffer
getMajorVersion
public float getMajorVersion(javax.servlet.http.HttpServletRequest request)
- Specified by:
getMajorVersion
in interface BrowserSniffer
getRevision
public String getRevision(javax.servlet.http.HttpServletRequest request)
- Specified by:
getRevision
in interface BrowserSniffer
getVersion
public String getVersion(javax.servlet.http.HttpServletRequest request)
- Specified by:
getVersion
in interface BrowserSniffer
isAir
public boolean isAir(javax.servlet.http.HttpServletRequest request)
- Specified by:
isAir
in interface BrowserSniffer
isChrome
public boolean isChrome(javax.servlet.http.HttpServletRequest request)
- Specified by:
isChrome
in interface BrowserSniffer
isFirefox
public boolean isFirefox(javax.servlet.http.HttpServletRequest request)
- Specified by:
isFirefox
in interface BrowserSniffer
isGecko
public boolean isGecko(javax.servlet.http.HttpServletRequest request)
- Specified by:
isGecko
in interface BrowserSniffer
isIe
public boolean isIe(javax.servlet.http.HttpServletRequest request)
- Specified by:
isIe
in interface BrowserSniffer
isIphone
public boolean isIphone(javax.servlet.http.HttpServletRequest request)
- Specified by:
isIphone
in interface BrowserSniffer
isLinux
public boolean isLinux(javax.servlet.http.HttpServletRequest request)
- Specified by:
isLinux
in interface BrowserSniffer
isMac
public boolean isMac(javax.servlet.http.HttpServletRequest request)
- Specified by:
isMac
in interface BrowserSniffer
isMobile
public boolean isMobile(javax.servlet.http.HttpServletRequest request)
- Specified by:
isMobile
in interface BrowserSniffer
isMozilla
public boolean isMozilla(javax.servlet.http.HttpServletRequest request)
- Specified by:
isMozilla
in interface BrowserSniffer
isOpera
public boolean isOpera(javax.servlet.http.HttpServletRequest request)
- Specified by:
isOpera
in interface BrowserSniffer
isRtf
public boolean isRtf(javax.servlet.http.HttpServletRequest request)
- Specified by:
isRtf
in interface BrowserSniffer
isSafari
public boolean isSafari(javax.servlet.http.HttpServletRequest request)
- Specified by:
isSafari
in interface BrowserSniffer
isSun
public boolean isSun(javax.servlet.http.HttpServletRequest request)
- Specified by:
isSun
in interface BrowserSniffer
isWap
public boolean isWap(javax.servlet.http.HttpServletRequest request)
- Specified by:
isWap
in interface BrowserSniffer
isWapXhtml
public boolean isWapXhtml(javax.servlet.http.HttpServletRequest request)
- Specified by:
isWapXhtml
in interface BrowserSniffer
isWebKit
public boolean isWebKit(javax.servlet.http.HttpServletRequest request)
- Specified by:
isWebKit
in interface BrowserSniffer
isWindows
public boolean isWindows(javax.servlet.http.HttpServletRequest request)
- Specified by:
isWindows
in interface BrowserSniffer
isWml
public boolean isWml(javax.servlet.http.HttpServletRequest request)
- Specified by:
isWml
in interface BrowserSniffer
getAccept
protected String getAccept(javax.servlet.http.HttpServletRequest request)
getUserAgent
protected String getUserAgent(javax.servlet.http.HttpServletRequest request)