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
ConstructorDescriptionBrowserCallable
(de.uplanet.lucy.server.connector.IServerBridgeRequest p_request) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
getAix()
boolean
getAix1()
boolean
getAix2()
boolean
getAix3()
boolean
getAix4()
boolean
boolean
getAmaya()
Deprecated.boolean
getAmiga()
boolean
boolean
getAol()
Deprecated.boolean
getAol3()
Deprecated.boolean
getAol4()
Deprecated.boolean
getAol5()
Deprecated.boolean
getAol6()
Deprecated.boolean
getAoltv()
Deprecated.boolean
getAolTV()
Deprecated.boolean
boolean
boolean
getBaidu()
boolean
getBing()
boolean
boolean
getBsd()
boolean
boolean
getCss()
boolean
getCss1()
boolean
getCss2()
boolean
getCurl()
boolean
getDec()
boolean
getDillo()
boolean
getDom0()
boolean
getDom1()
boolean
getDom2()
boolean
boolean
getEdge()
boolean
getEmacs()
boolean
boolean
boolean
boolean
boolean
getGecko()
int
int
boolean
boolean
boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
getHpux()
boolean
boolean
getHpux9()
boolean
boolean
getIcab()
boolean
boolean
getIe()
boolean
getIe10()
boolean
IE10 (Compatibility View)boolean
boolean
boolean
getIe11()
boolean
IE11 (Compatibility View)boolean
boolean
boolean
getIe3()
boolean
getIe4()
boolean
boolean
getIe4up()
boolean
getIe5()
boolean
getIe55()
boolean
boolean
boolean
boolean
getIe5up()
boolean
getIe6()
boolean
boolean
getIe6up()
boolean
getIe7()
boolean
boolean
getIe7up()
boolean
getIe8()
boolean
IE8 (Compatibility View)boolean
boolean
getIe8up()
boolean
getIe9()
boolean
IE9 (Compatibility View)boolean
boolean
getIe9up()
boolean
boolean
boolean
boolean
boolean
getIpad()
boolean
getIPad()
boolean
boolean
boolean
getIpod()
boolean
getIPod()
boolean
getIrix()
boolean
getIrix5()
boolean
getIrix6()
boolean
getJava()
Deprecated.boolean
boolean
boolean
boolean
boolean
getLinks()
boolean
getLinux()
boolean
getLobo()
Deprecated.boolean
boolean
getLwp()
boolean
getLycos()
boolean
getLynx()
boolean
getMac()
boolean
boolean
boolean
int
int
boolean
boolean
boolean
Same as
.getWebkit()
&&getMobile()
boolean
Deprecated.boolean
boolean
getMpras()
boolean
getNav2()
boolean
getNav3()
boolean
getNav4()
boolean
getNav45()
boolean
boolean
boolean
getNav6()
boolean
boolean
boolean
boolean
boolean
boolean
getOpera()
boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
Deprecated.boolean
getOs2()
boolean
getPalm()
boolean
boolean
getRobot()
boolean
boolean
getSco()
boolean
boolean
getSinix()
boolean
getSlurp()
boolean
Deprecated.boolean
getSun()
boolean
getSun4()
boolean
getSun5()
boolean
boolean
boolean
boolean
getUnix()
boolean
Get the User-Agent HTTP header that was sent by the client.boolean
getVista()
boolean
getVms()
boolean
getVMS()
boolean
getW3m()
Deprecated.boolean
getWap()
Deprecated.boolean
boolean
boolean
getWebtv()
boolean
getWebTV()
boolean
getWget()
boolean
getWin16()
boolean
getWin2k()
boolean
getWin31()
boolean
getWin32()
boolean
getWin3x()
boolean
getWin95()
boolean
getWin98()
boolean
boolean
getWinme()
boolean
getWinnt()
boolean
getWinxp()
boolean
getX11()
boolean
getYahoo()
toJSON()
Create a JSON literal that represents the capabilities of the browser.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 Details
-
BrowserCallable
public BrowserCallable(de.uplanet.lucy.server.connector.IServerBridgeRequest p_request)
-
-
Method Details
-
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
-
getVersion
-
getMajorVersion
public int getMajorVersion() -
getMinorVersion
public int getMinorVersion() -
getGeckoVersion
-
getGeckoMajorVersion
public int getGeckoMajorVersion() -
getGeckoMinorVersion
public int getGeckoMinorVersion() -
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() -
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. -
getAol3
Deprecated. -
getAol4
Deprecated. -
getAol5
Deprecated. -
getAol6
Deprecated. -
getAolTV
Deprecated. -
getAoltv
Deprecated. -
getOpera
public boolean getOpera() -
getOpera3
Deprecated. -
getOpera4
Deprecated. -
getOpera5
Deprecated. -
getOpera6
Deprecated. -
getOpera7
Deprecated. -
getOpera8
Deprecated. -
getOpera9
Deprecated. -
getOpera9up
Deprecated. -
getOpera9down
Deprecated. -
getOpera920up
Deprecated. -
getOpera912down
Deprecated. -
getOpera10
Deprecated. -
getOpera11
Deprecated. -
getOpera12
Deprecated. -
getHotjava
Deprecated. -
getHotjava3
Deprecated. -
getHotjava3up
Deprecated. -
getLobo
Deprecated. -
getHttpclient
public boolean getHttpclient() -
getAmaya
Deprecated. -
getCurl
public boolean getCurl() -
getStaroffice
Deprecated. -
getIcab
public boolean getIcab() -
getLotusnotes
public boolean getLotusnotes() -
getKonqueror
public boolean getKonqueror() -
getLynx
public boolean getLynx() -
getLinks
public boolean getLinks() -
getW3m
Deprecated. -
getWebTV
public boolean getWebTV() -
getWebtv
public boolean getWebtv() -
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. -
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. -
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
Create a JSON literal that represents the capabilities of the browser.- Returns:
- The JSON literal.
-
writeJSONString
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
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.
-