|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ivata.mask.web.browser.Browser
This class identifies the capabilities of the web browser the client is using, from the user agent string.
LoginTag creates an instance of this class in the http
session, storing it under the attribute name "browser" .
| Constructor Summary | |
Browser(java.lang.String userAgentParam,
java.lang.String javaScriptVersionParam)
Construct an instance of the browser, using the user agent string provided to detect the browser's capabilities. |
|
| Method Summary | |
boolean |
canDisplayFrames()
Detect whether or not the browser can display frames. |
boolean |
canDisplayIFrames()
Detect whether or not the browser can display <iframe&bt;
tags. |
boolean |
canDisplayMarquee()
Detect whether or not the browser can display <marquee&bt; tags. |
java.lang.String |
getJavaScriptVersion()
A String depicting the version number of the JavaScript this browser supports if supported, otherwise null if the browser
doesn't support JavaScript. |
java.lang.Integer |
getType()
Identifies the make, or type of browser used (such as Mozilla, IE, etc.). |
java.lang.String |
getUserAgent()
Initialized by the constructor, this is the user agent string from the request.getHeader("User-Agent") value. |
java.lang.String |
getVersion()
A string depiction of the browser version number if available and known, otherwise null if the browser manufacturer could not be
identified. |
boolean |
isJavaScriptEnabled()
Detect whether or not this browser is capable of displaying JavaScript, and has JavaScript enabled. |
void |
setJavaScriptVersion(java.lang.String javaScriptVersionParam)
Refer to getJavaScriptVersion(). |
void |
setType(java.lang.Integer typeParam)
Refer to getType(). |
void |
setUserAgent(java.lang.String userAgentParam)
Refer to getUserAgent(). |
void |
setVersion(java.lang.String versionParam)
Refer to getVersion(). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Browser(java.lang.String userAgentParam,
java.lang.String javaScriptVersionParam)
Construct an instance of the browser, using the user agent string provided to detect the browser's capabilities.
userAgentParam - Refer to getUserAgent().javaScriptVersionParam - Refer to getJavaScriptVersion().| Method Detail |
public final boolean canDisplayFrames()
Detect whether or not the browser can display frames.
true if the browser can display frames, otherwise
false.public final boolean canDisplayIFrames()
Detect whether or not the browser can display <iframe&bt;
tags.
true if the browser can display iframes, otherwise
false.public final boolean canDisplayMarquee()
Detect whether or not the browser can display
<marquee&bt; tags.
true if the browser can display marquee, otherwise
false.public java.lang.String getJavaScriptVersion()
A String depicting the version number of the JavaScript this browser
supports if supported, otherwise null if the browser
doesn't support JavaScript.
public java.lang.Integer getType()
Identifies the make, or type of browser used (such as Mozilla, IE, etc.). Equates to one of the constants in {@linkBrowserConstants.
public java.lang.String getUserAgent()
Initialized by the constructor, this is the user agent string from the
request.getHeader("User-Agent") value.
public java.lang.String getVersion()
A string depiction of the browser version number if available and known,
otherwise null if the browser manufacturer could not be
identified.
public boolean isJavaScriptEnabled()
Detect whether or not this browser is capable of displaying JavaScript, and has JavaScript enabled.
true if the browser can display JavaScript,
otherwise false.public final void setJavaScriptVersion(java.lang.String javaScriptVersionParam)
getJavaScriptVersion().
javaScriptVersionParam - Refer to getJavaScriptVersion().public final void setType(java.lang.Integer typeParam)
getType().
typeParam - Refer to getType().public final void setUserAgent(java.lang.String userAgentParam)
getUserAgent().
userAgentParam - Refer to getUserAgent().public final void setVersion(java.lang.String versionParam)
getVersion().
versionParam - Refer to getVersion().
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||