Package io.jans.casa.core.pojo
Class BrowserInfo
java.lang.Object
io.jans.casa.core.pojo.BrowserInfo
A POJO holding basic information about a user's browser.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the main (major) version (e.g. 11).getName()Returns the name of web browser (e.g.booleanisMobile()Whether this is a mobile browser or not.voidsetMainVersion(int mainVersion) Sets the (main) version of the browser in thisBrowserInfoinstance.voidsetMobile(boolean mobile) Sets whether the browser is mobile or not in thisBrowserInfoinstance.voidSets the name of the browser in thisBrowserInfoinstance.
-
Constructor Details
-
BrowserInfo
public BrowserInfo()
-
-
Method Details
-
getName
Returns the name of web browser (e.g. Internet Explorer).- Returns:
- A String
-
getMainVersion
public int getMainVersion()Returns the main (major) version (e.g. 11).- Returns:
- An int value
-
isMobile
public boolean isMobile()Whether this is a mobile browser or not.- Returns:
- A boolean value
-
setName
Sets the name of the browser in thisBrowserInfoinstance.- Parameters:
name- A string value
-
setMainVersion
public void setMainVersion(int mainVersion) Sets the (main) version of the browser in thisBrowserInfoinstance.- Parameters:
mainVersion- An int value
-
setMobile
public void setMobile(boolean mobile) Sets whether the browser is mobile or not in thisBrowserInfoinstance.- Parameters:
mobile- A boolean value
-