Package de.uplanet.lucy.server.composer
Class BrowserCallable
- java.lang.Object
-
- de.uplanet.lucy.server.composer.BrowserCallable
-
@VelocityVariable("Browser") @VelocityCallable("instance") public final class BrowserCallable extends Object
Code stolen from Velocity-Tools 2,org.apache.velocity.tools.view.tools.BrowserSnifferTool
.
-
-
Constructor Summary
Constructors Constructor Description BrowserCallable(String p_strUserAgent)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
get(String p_strKey)
boolean
getAix()
boolean
getAix1()
boolean
getAix2()
boolean
getAix3()
boolean
getAix4()
boolean
getAltavista()
boolean
getAmaya()
Deprecated.boolean
getAmiga()
boolean
getAndroid()
boolean
getAol()
Deprecated.boolean
getAol3()
Deprecated.boolean
getAol4()
Deprecated.boolean
getAol5()
Deprecated.boolean
getAol6()
Deprecated.boolean
getAoltv()
Deprecated.boolean
getAolTV()
Deprecated.boolean
getAudrey()
boolean
getAvantgo()
boolean
getBaidu()
boolean
getBing()
boolean
getBlackberry()
boolean
getBsd()
boolean
getChrome()
boolean
getCss()
boolean
getCss1()
boolean
getCss2()
boolean
getCurl()
boolean
getDec()
boolean
getDillo()
boolean
getDom0()
boolean
getDom1()
boolean
getDom2()
boolean
getDotnet()
boolean
getEdge()
boolean
getEmacs()
boolean
getEpiphany()
boolean
getFirefox()
boolean
getFreebsd()
boolean
getGaleon()
boolean
getGecko()
int
getGeckoMajorVersion()
int
getGeckoMinorVersion()
String
getGeckoVersion()
boolean
getGetright()
boolean
getGoogle()
boolean
getHotjava()
Deprecated.boolean
getHotjava3()
Deprecated.boolean
getHotjava3up()
Deprecated.boolean
getHpux()
boolean
getHpux10()
boolean
getHpux9()
boolean
getHttpclient()
boolean
getIcab()
boolean
getIceweasel()
boolean
getIe()
boolean
getIe10()
boolean
getIe10compat()
IE10 (Compatibility View)boolean
getIe10down()
boolean
getIe10up()
boolean
getIe11()
boolean
getIe11compat()
IE11 (Compatibility View)boolean
getIe11down()
boolean
getIe11up()
boolean
getIe3()
boolean
getIe4()
boolean
getIe4down()
boolean
getIe4up()
boolean
getIe5()
boolean
getIe55()
boolean
getIe55down()
boolean
getIe55up()
boolean
getIe5down()
boolean
getIe5up()
boolean
getIe6()
boolean
getIe6down()
boolean
getIe6up()
boolean
getIe7()
boolean
getIe7down()
boolean
getIe7up()
boolean
getIe8()
boolean
getIe8compat()
IE8 (Compatibility View)boolean
getIe8down()
boolean
getIe8up()
boolean
getIe9()
boolean
getIe9compat()
IE9 (Compatibility View)boolean
getIe9down()
boolean
getIe9up()
boolean
getInfoseek()
boolean
getIntrexxdim()
boolean
getIntrexxDIM()
boolean
getIntrexxrssprovider()
boolean
getIntrexxRssProvider()
boolean
getIopener()
boolean
getIpad()
boolean
getIPad()
boolean
getIphone()
boolean
getIPhone()
boolean
getIpod()
boolean
getIPod()
boolean
getIrix()
boolean
getIrix5()
boolean
getIrix6()
boolean
getJava()
Deprecated.boolean
getJavascript()
boolean
getKmeleon()
boolean
getKonqueror()
boolean
getLinkexchange()
boolean
getLinks()
boolean
getLinux()
boolean
getLobo()
Deprecated.boolean
getLotusnotes()
boolean
getLwp()
boolean
getLycos()
boolean
getLynx()
boolean
getMac()
boolean
getMac68k()
boolean
getMacosx()
boolean
getMacppc()
int
getMajorVersion()
int
getMinorVersion()
boolean
getMobile()
boolean
getMobilewebkit()
boolean
getMobileWebkit()
Same as
.getWebkit()
&&getMobile()
boolean
getMosaic()
Deprecated.boolean
getMozilla()
boolean
getMpras()
boolean
getNav2()
boolean
getNav3()
boolean
getNav4()
boolean
getNav45()
boolean
getNav45up()
boolean
getNav4up()
boolean
getNav6()
boolean
getNav6up()
boolean
getNavgold()
boolean
getNeoplanet()
boolean
getNeoplanet2()
boolean
getNetscape()
boolean
getOpera()
boolean
getOpera10()
Deprecated.boolean
getOpera11()
Deprecated.boolean
getOpera12()
Deprecated.boolean
getOpera3()
Deprecated.boolean
getOpera4()
Deprecated.boolean
getOpera5()
Deprecated.boolean
getOpera6()
Deprecated.boolean
getOpera7()
Deprecated.boolean
getOpera8()
Deprecated.boolean
getOpera9()
Deprecated.boolean
getOpera912down()
Deprecated.boolean
getOpera920up()
Deprecated.boolean
getOpera9down()
Deprecated.boolean
getOpera9up()
Deprecated.boolean
getOs2()
boolean
getPalm()
boolean
getReliant()
boolean
getRobot()
boolean
getSafari()
boolean
getSco()
boolean
getScooter()
boolean
getSinix()
boolean
getSlurp()
boolean
getStaroffice()
Deprecated.boolean
getSun()
boolean
getSun4()
boolean
getSun5()
boolean
getSuni86()
boolean
getTouchpad()
boolean
getTouchPad()
boolean
getUnix()
boolean
getUnixware()
String
getUserAgentId()
Get the User-Agent HTTP header that was sent by the client.String
getVersion()
boolean
getVista()
boolean
getVms()
boolean
getVMS()
boolean
getW3m()
Deprecated.boolean
getWap()
Deprecated.boolean
getWebcrawler()
boolean
getWebkit()
boolean
getWebtv()
boolean
getWebTV()
boolean
getWget()
boolean
getWin16()
boolean
getWin2k()
boolean
getWin31()
boolean
getWin32()
boolean
getWin3x()
boolean
getWin95()
boolean
getWin98()
boolean
getWindows()
boolean
getWinme()
boolean
getWinnt()
boolean
getWinxp()
boolean
getX11()
boolean
getYahoo()
String
toJSON()
Create a JSON literal that represents the capabilities of the browser.Object
toJSONObject()
Create a JSON object that represents the capabilities of the browser.void
writeJSONString(Writer p_writer)
Create a JSON literal that represents the capabilities of the browser and write it to a character stream.
-
-
-
Constructor Detail
-
BrowserCallable
public BrowserCallable(String p_strUserAgent)
-
-
Method Detail
-
getUserAgentId
public String getUserAgentId()
Get the User-Agent HTTP header that was sent by the client.- Returns:
- The User-Agent header value that was sent by the client.
-
get
public boolean get(String p_strKey)
-
getVersion
public String getVersion()
-
getMajorVersion
public int getMajorVersion()
-
getMinorVersion
public int getMinorVersion()
-
getGeckoVersion
public String getGeckoVersion()
-
getGeckoMajorVersion
public int getGeckoMajorVersion()
-
getGeckoMinorVersion
public int getGeckoMinorVersion()
-
getIntrexxDIM
public boolean getIntrexxDIM()
-
getIntrexxdim
public boolean getIntrexxdim()
-
getIntrexxRssProvider
public boolean getIntrexxRssProvider()
-
getIntrexxrssprovider
public boolean getIntrexxrssprovider()
-
getGecko
public boolean getGecko()
-
getFirefox
public boolean getFirefox()
-
getIceweasel
public boolean getIceweasel()
-
getGaleon
public boolean getGaleon()
-
getKmeleon
public boolean getKmeleon()
-
getEpiphany
public boolean getEpiphany()
-
getSafari
public boolean getSafari()
-
getChrome
public boolean getChrome()
-
getDillo
public boolean getDillo()
-
getNetscape
public boolean getNetscape()
-
getNav2
public boolean getNav2()
-
getNav3
public boolean getNav3()
-
getNav4
public boolean getNav4()
-
getNav4up
public boolean getNav4up()
-
getNav45
public boolean getNav45()
-
getNav45up
public boolean getNav45up()
-
getNavgold
public boolean getNavgold()
-
getNav6
public boolean getNav6()
-
getNav6up
public boolean getNav6up()
-
getMozilla
public boolean getMozilla()
-
getIe
public boolean getIe()
-
getIe3
public boolean getIe3()
-
getIe4
public boolean getIe4()
-
getIe4up
public boolean getIe4up()
-
getIe4down
public boolean getIe4down()
-
getIe5
public boolean getIe5()
-
getIe5up
public boolean getIe5up()
-
getIe5down
public boolean getIe5down()
-
getIe55
public boolean getIe55()
-
getIe55up
public boolean getIe55up()
-
getIe55down
public boolean getIe55down()
-
getIe6
public boolean getIe6()
-
getIe6up
public boolean getIe6up()
-
getIe6down
public boolean getIe6down()
-
getIe7
public boolean getIe7()
-
getIe7up
public boolean getIe7up()
-
getIe7down
public boolean getIe7down()
-
getIe8
public boolean getIe8()
-
getIe8up
public boolean getIe8up()
-
getIe8down
public boolean getIe8down()
-
getIe8compat
public boolean getIe8compat()
IE8 (Compatibility View)
-
getIe9
public boolean getIe9()
-
getIe9up
public boolean getIe9up()
-
getIe9down
public boolean getIe9down()
-
getIe9compat
public boolean getIe9compat()
IE9 (Compatibility View)
-
getIe10
public boolean getIe10()
-
getIe10up
public boolean getIe10up()
-
getIe10down
public boolean getIe10down()
-
getIe10compat
public boolean getIe10compat()
IE10 (Compatibility View)
-
getIe11
public boolean getIe11()
-
getIe11up
public boolean getIe11up()
-
getIe11down
public boolean getIe11down()
-
getIe11compat
public boolean getIe11compat()
IE11 (Compatibility View)
-
getEdge
public boolean getEdge()
-
getNeoplanet
public boolean getNeoplanet()
-
getNeoplanet2
public boolean getNeoplanet2()
-
getAol
@Deprecated public boolean getAol()
Deprecated.
-
getAol3
@Deprecated public boolean getAol3()
Deprecated.
-
getAol4
@Deprecated public boolean getAol4()
Deprecated.
-
getAol5
@Deprecated public boolean getAol5()
Deprecated.
-
getAol6
@Deprecated public boolean getAol6()
Deprecated.
-
getAolTV
@Deprecated public boolean getAolTV()
Deprecated.
-
getAoltv
@Deprecated public boolean getAoltv()
Deprecated.
-
getOpera
public boolean getOpera()
-
getOpera3
@Deprecated public boolean getOpera3()
Deprecated.
-
getOpera4
@Deprecated public boolean getOpera4()
Deprecated.
-
getOpera5
@Deprecated public boolean getOpera5()
Deprecated.
-
getOpera6
@Deprecated public boolean getOpera6()
Deprecated.
-
getOpera7
@Deprecated public boolean getOpera7()
Deprecated.
-
getOpera8
@Deprecated public boolean getOpera8()
Deprecated.
-
getOpera9
@Deprecated public boolean getOpera9()
Deprecated.
-
getOpera9up
@Deprecated public boolean getOpera9up()
Deprecated.
-
getOpera9down
@Deprecated public boolean getOpera9down()
Deprecated.
-
getOpera920up
@Deprecated public boolean getOpera920up()
Deprecated.
-
getOpera912down
@Deprecated public boolean getOpera912down()
Deprecated.
-
getOpera10
@Deprecated public boolean getOpera10()
Deprecated.
-
getOpera11
@Deprecated public boolean getOpera11()
Deprecated.
-
getOpera12
@Deprecated public boolean getOpera12()
Deprecated.
-
getHotjava
@Deprecated public boolean getHotjava()
Deprecated.
-
getHotjava3
@Deprecated public boolean getHotjava3()
Deprecated.
-
getHotjava3up
@Deprecated public boolean getHotjava3up()
Deprecated.
-
getLobo
@Deprecated public boolean getLobo()
Deprecated.
-
getHttpclient
public boolean getHttpclient()
-
getAmaya
@Deprecated public boolean getAmaya()
Deprecated.
-
getCurl
public boolean getCurl()
-
getStaroffice
@Deprecated public boolean getStaroffice()
Deprecated.
-
getIcab
public boolean getIcab()
-
getLotusnotes
public boolean getLotusnotes()
-
getKonqueror
public boolean getKonqueror()
-
getLynx
public boolean getLynx()
-
getLinks
public boolean getLinks()
-
getW3m
@Deprecated public boolean getW3m()
Deprecated.
-
getWebTV
public boolean getWebTV()
-
getWebtv
public boolean getWebtv()
-
getMosaic
@Deprecated public boolean getMosaic()
Deprecated.
-
getWget
public boolean getWget()
-
getGetright
public boolean getGetright()
-
getLwp
public boolean getLwp()
-
getYahoo
public boolean getYahoo()
-
getGoogle
public boolean getGoogle()
-
getBing
public boolean getBing()
-
getBaidu
public boolean getBaidu()
-
getJava
@Deprecated public boolean getJava()
Deprecated.
-
getAltavista
public boolean getAltavista()
-
getScooter
public boolean getScooter()
-
getLycos
public boolean getLycos()
-
getInfoseek
public boolean getInfoseek()
-
getWebcrawler
public boolean getWebcrawler()
-
getLinkexchange
public boolean getLinkexchange()
-
getSlurp
public boolean getSlurp()
-
getRobot
public boolean getRobot()
-
getBlackberry
public boolean getBlackberry()
-
getMobileWebkit
public boolean getMobileWebkit()
Same as
.getWebkit()
&&getMobile()
-
getMobilewebkit
public boolean getMobilewebkit()
-
getWebkit
public boolean getWebkit()
-
getTouchPad
public boolean getTouchPad()
-
getTouchpad
public boolean getTouchpad()
-
getMobile
public boolean getMobile()
-
getIPhone
public boolean getIPhone()
-
getIphone
public boolean getIphone()
-
getIPod
public boolean getIPod()
-
getIpod
public boolean getIpod()
-
getIPad
public boolean getIPad()
-
getIpad
public boolean getIpad()
-
getAndroid
public boolean getAndroid()
-
getAudrey
public boolean getAudrey()
-
getIopener
public boolean getIopener()
-
getAvantgo
public boolean getAvantgo()
-
getPalm
public boolean getPalm()
-
getWap
@Deprecated public boolean getWap()
Deprecated.
-
getWin16
public boolean getWin16()
-
getWin3x
public boolean getWin3x()
-
getWin31
public boolean getWin31()
-
getWin95
public boolean getWin95()
-
getWin98
public boolean getWin98()
-
getWinnt
public boolean getWinnt()
-
getWin2k
public boolean getWin2k()
-
getWinxp
public boolean getWinxp()
-
getVista
public boolean getVista()
-
getDotnet
public boolean getDotnet()
-
getWinme
public boolean getWinme()
-
getWin32
public boolean getWin32()
-
getWindows
public boolean getWindows()
-
getMac
public boolean getMac()
-
getMacosx
public boolean getMacosx()
-
getMac68k
public boolean getMac68k()
-
getMacppc
public boolean getMacppc()
-
getAmiga
public boolean getAmiga()
-
getEmacs
public boolean getEmacs()
-
getOs2
public boolean getOs2()
-
getSun
public boolean getSun()
-
getSun4
public boolean getSun4()
-
getSun5
public boolean getSun5()
-
getSuni86
public boolean getSuni86()
-
getIrix
public boolean getIrix()
-
getIrix5
public boolean getIrix5()
-
getIrix6
public boolean getIrix6()
-
getHpux
public boolean getHpux()
-
getHpux9
public boolean getHpux9()
-
getHpux10
public boolean getHpux10()
-
getAix
public boolean getAix()
-
getAix1
public boolean getAix1()
-
getAix2
public boolean getAix2()
-
getAix3
public boolean getAix3()
-
getAix4
public boolean getAix4()
-
getLinux
public boolean getLinux()
-
getSco
public boolean getSco()
-
getUnixware
public boolean getUnixware()
-
getMpras
public boolean getMpras()
-
getReliant
public boolean getReliant()
-
getDec
public boolean getDec()
-
getSinix
public boolean getSinix()
-
getFreebsd
public boolean getFreebsd()
-
getBsd
public boolean getBsd()
-
getX11
public boolean getX11()
-
getUnix
public boolean getUnix()
-
getVMS
public boolean getVMS()
-
getVms
public boolean getVms()
-
getCss
public boolean getCss()
-
getCss1
public boolean getCss1()
-
getCss2
public boolean getCss2()
-
getDom0
public boolean getDom0()
-
getDom1
public boolean getDom1()
-
getDom2
public boolean getDom2()
-
getJavascript
public boolean getJavascript()
-
toJSON
public String toJSON()
Create a JSON literal that represents the capabilities of the browser.- Returns:
- The JSON literal.
-
writeJSONString
public void writeJSONString(Writer p_writer) throws IOException
Create a JSON literal that represents the capabilities of the browser and write it to a character stream.- Parameters:
p_writer
- The output stream.- Throws:
IOException
- If an I/O error occurred.
-
toJSONObject
public Object toJSONObject()
Create a JSON object that represents the capabilities of the browser.The caller may modify this object but should not make any assumptions about the type of the object returned by the current implementation. Assume sensible duck typing instead.
- Returns:
- The JSON object.
-
-