Liferay 6.0.5

com.liferay.portal.kernel.servlet
Interface BrowserSniffer

All Known Implementing Classes:
BrowserSnifferImpl

public interface BrowserSniffer

See http://www.zytrax.com/tech/web/browser_ids.htm for examples.


Field Summary
static String BROWSER_ID_FIREFOX
           
static String BROWSER_ID_IE
           
static String BROWSER_ID_OTHER
           
 
Method Summary
 boolean acceptsGzip(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)
           
 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)
           
 

Field Detail

BROWSER_ID_FIREFOX

static final String BROWSER_ID_FIREFOX
See Also:
Constant Field Values

BROWSER_ID_IE

static final String BROWSER_ID_IE
See Also:
Constant Field Values

BROWSER_ID_OTHER

static final String BROWSER_ID_OTHER
See Also:
Constant Field Values
Method Detail

acceptsGzip

boolean acceptsGzip(javax.servlet.http.HttpServletRequest request)

getBrowserId

String getBrowserId(javax.servlet.http.HttpServletRequest request)

getMajorVersion

float getMajorVersion(javax.servlet.http.HttpServletRequest request)

getRevision

String getRevision(javax.servlet.http.HttpServletRequest request)

getVersion

String getVersion(javax.servlet.http.HttpServletRequest request)

isAir

boolean isAir(javax.servlet.http.HttpServletRequest request)

isChrome

boolean isChrome(javax.servlet.http.HttpServletRequest request)

isFirefox

boolean isFirefox(javax.servlet.http.HttpServletRequest request)

isGecko

boolean isGecko(javax.servlet.http.HttpServletRequest request)

isIe

boolean isIe(javax.servlet.http.HttpServletRequest request)

isIphone

boolean isIphone(javax.servlet.http.HttpServletRequest request)

isLinux

boolean isLinux(javax.servlet.http.HttpServletRequest request)

isMac

boolean isMac(javax.servlet.http.HttpServletRequest request)

isMobile

boolean isMobile(javax.servlet.http.HttpServletRequest request)

isMozilla

boolean isMozilla(javax.servlet.http.HttpServletRequest request)

isOpera

boolean isOpera(javax.servlet.http.HttpServletRequest request)

isRtf

boolean isRtf(javax.servlet.http.HttpServletRequest request)

isSafari

boolean isSafari(javax.servlet.http.HttpServletRequest request)

isSun

boolean isSun(javax.servlet.http.HttpServletRequest request)

isWap

boolean isWap(javax.servlet.http.HttpServletRequest request)

isWapXhtml

boolean isWapXhtml(javax.servlet.http.HttpServletRequest request)

isWebKit

boolean isWebKit(javax.servlet.http.HttpServletRequest request)

isWindows

boolean isWindows(javax.servlet.http.HttpServletRequest request)

isWml

boolean isWml(javax.servlet.http.HttpServletRequest request)

Liferay 6.0.5