Web browser terminal type.
This class implements web browser properties, which declare the features of
the web browser.
author: IT Mill Ltd. version: 3.1.1 since: 3.0
performClientCheck() Should the client features be checked using remote scripts.
Should the client side terminal feature check be performed.
true if client side checking should be performed for this terminal type.
public void
performClientCheck(boolean value) Should the client features be checked using remote scripts.
true if client side checking should be performed for this terminal type.
Get the name and version of the web browser application.
This is the version string reported by the web-browser in http headers.
Web browser application.
Get the client side cheked property.
Certain terminal features can only be detected at client side. This
property indicates if the client side detections have been performed
for this type.
true if client has sent information about its properties. Default false
Should the client features be checked using remote scripts.
Should the client side terminal feature check be performed.
true if client side checking should be performed for this terminal type. Default false.
performClientCheck
public void performClientCheck(boolean value)(Code)
Should the client features be checked using remote scripts.
true if client side checking should be performed for this terminal type. Default false.
setBrowserApplication
public void setBrowserApplication(String browserApplication)(Code)
Sets the browser application.
This corresponds to User-Agent HTTP header.
Parameters: browserApplication - The browserApplication to set
setClientSideChecked
public void setClientSideChecked(boolean value)(Code)
Set the client side checked property.
Certain terminal features can only be detected at client side. This
property indicates if the client side detections have been performed
for this type.
true if client has sent information about its properties, false otherweise.
setContentType
public void setContentType(String contentType)(Code)
Sets the default content type.
Default is text/html Parameters: contentType - The contentType to set
setFrameSupport
public void setFrameSupport(boolean frameSupport)(Code)
Set the browser frame support
Parameters: frameSupport - True if the browser supports frames, False if not
setJavaEnabled
public void setJavaEnabled(boolean javaEnabled)(Code)
Sets the java enabled property.
Parameters: javaEnabled - The javaEnabled to set
setJavaScriptVersion
public void setJavaScriptVersion(JavaScriptVersion javaScriptVersion)(Code)
Sets the JavaScript version.
Parameters: javaScriptVersion - The JavaScript version to set
setMarkupVersion
public void setMarkupVersion(MarkupVersion markupVersion)(Code)
Sets the markup language version.
Parameters: markupVersion - ersion The markup language version to set
setScreenHeight
public void setScreenHeight(int screenHeight)(Code)
Sets the screen height.
Parameters: screenHeight - The screen height to set in pixels.
Check if this type supports given markup language version.
true if this type supports the given markup version.
supports
public boolean supports(JavaScriptVersion js)(Code)
Check if this type supports given javascript version.
Parameters: js - The javascript version to check for. true if this type supports the given javascript version.