com.microstrategy.web.app.BrowserSettings |
![]() |
This interface enables to access settings or preferences that have been defined
outside the Preferences
instance. Each setting may have been originated
from one of several different sources (such as the URL query string, cookies, etc).
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract void |
clearHttpSessionValues()
Clear http session browser settings.
| ||||||||||
abstract void |
clearSessionBrowserSettings()
This method is deprecated.
use
clearSessionValues() or clearSessionValues(WebIServerSession) .
| ||||||||||
abstract void |
clearSessionValues()
Clear the session browser settings for current Intelligence Server session.
| ||||||||||
abstract void |
clearSessionValues(WebIServerSession session)
Clear the session browser settings for the given session.
| ||||||||||
abstract void |
flush()
Prepare all required headers so browser settings are sent back to the client
as cookies.
| ||||||||||
abstract String |
getBrowserCompatName()
Returns the name of the IE browser including its status to indicate whether it is requesitng in Compatibility Mode.
| ||||||||||
abstract String |
getBrowserName()
Returns the name of the browser that is being used for performing the request
| ||||||||||
abstract int |
getBrowserType()
Returns the type of the browser that is being used for performing the request being
handled.
| ||||||||||
abstract int |
getBrowserTypeAndVersion()
Returns the type and the version of the browser that is being used for performing the request
| ||||||||||
abstract String |
getBrowserVersion()
Returns the numeric version of the browser that is being used.
| ||||||||||
abstract MarkupOutput |
getDebugOut()
Get the Debug Information into the output
| ||||||||||
abstract String |
getDefaultValue(String key)
Return the default value of a specific setting if not found for the current user.
| ||||||||||
abstract BrowserSettingDefinitionList |
getDefinitionList()
Return the default definition of the browser setting which
will be use to determine the value of the browser settings in case the setting
requested is not found for the user.
| ||||||||||
abstract String |
getHttpSessionValue(String keyName)
Returns the http session value of the key sent as parameter
| ||||||||||
abstract String |
getLocale()
This method is deprecated.
Not used anymore. Use
getSession() to get the display locale instead.
| ||||||||||
abstract Preferences |
getPreferences()
Get the Preferences instance currently assigned to this BrowserSettings
| ||||||||||
abstract WebIServerSession |
getSession()
Gets the session that is used as default when accessing session settings.
| ||||||||||
abstract String |
getSessionValue(String keyName, WebIServerSession session)
Returns the value of the key sent as parameter, related with the setting
corresponding to the indicated session
| ||||||||||
abstract String |
getSessionValue(String keyName)
Returns the value of the key sent as parameter, related with the setting
corresponding to the default session
| ||||||||||
abstract String |
getUserAgent()
Retrives the USER-AGENT string from the header of the browser.
| ||||||||||
abstract String |
getValue(String keyName)
Returns the value of the key sent as parameter
| ||||||||||
abstract boolean |
hasValueSet(String keyName)
Checks whether a value has been set for the given key name or not
| ||||||||||
abstract boolean |
isCSS2Supported()
Indicates if the browser currently used by the client can handle CSS 2 styles.
| ||||||||||
abstract boolean |
isDHTMLSupported()
Indicates if the browser currently used by the client can handle DHTML content or
not.
| ||||||||||
abstract boolean |
isEdgeModeEnabled()
Get flag whether System Preference enables a tag or http header X-UA-COMPATIBLE to force IE browsers to render in highest Document Mode.
| ||||||||||
abstract void |
setDefinitionList(BrowserSettingDefinitionList bsDefinitionList)
Sets the default definition of the browser setting.
| ||||||||||
abstract void |
setHttpSessionValue(String keyName, String value)
Persists the specified http session value under the specified key
| ||||||||||
abstract void |
setIframeVisibility(String value)
Define a browser setting for allowing the IFrame to be shown on DHTML environments.
| ||||||||||
abstract void |
setPreferences(Preferences preferences)
Set the Preferences instance to use for this BrowserSettings instance
| ||||||||||
abstract void |
setSession(WebIServerSession currentSession)
Sets the session that will be used as default when accessing session settings.
| ||||||||||
abstract void |
setSessionValue(String keyName, String value)
Persists the specified value under the specified key for the default session
| ||||||||||
abstract void |
setSessionValue(String keyName, String value, WebIServerSession session)
Persists the specified value under the specified key for the indicated session
| ||||||||||
abstract void |
setValue(String keyName, String value)
Persists the specified value under the specified key
|
Clear http session browser settings.
This method is deprecated.
use clearSessionValues()
or clearSessionValues(WebIServerSession)
.
Clear the session browser settings for current Intelligence Server session.
Clear the session browser settings for current Intelligence Server session.
Clear the session browser settings for the given session.
Prepare all required headers so browser settings are sent back to the client as cookies. This is an utility method that gives better performance, allowing to prepare these headers only once, instead of each time a browser setting value is changed. For best results, the automaticFlush flag should be off when creating the BrowserSettings instance.
Returns the name of the IE browser including its status to indicate whether it is requesitng in Compatibility Mode.
Returns the name of the browser that is being used for performing the request
Returns the type of the browser that is being used for performing the request being handled.
BROWSER_TYPE_NETSCAPE
BROWSER_TYPE_IE
BROWSER_TYPE_OTHER
Returns the type and the version of the browser that is being used for performing the request
BROWSER_TYPE_IE6
BROWSER_TYPE_FIREFOX_3
BROWSER_TYPE_SAFARI_4
Returns the numeric version of the browser that is being used. ie. 1.5, 6, 7
Get the Debug Information into the output
MarkupOutput
.Return the default value of a specific setting if not found for the current user. Returns an empty string if the definition of the setting was not found on the definition list.
key | the name of the browser setting. |
---|
Return the default definition of the browser setting which will be use to determine the value of the browser settings in case the setting requested is not found for the user.
BrowserSettingDefinitionList
instance of the browser setting.
Returns the http session value of the key sent as parameter
keyName | the name associated with the value to return |
---|
This method is deprecated.
Not used anymore. Use getSession()
to get the display locale instead.
Get the locale value saved as browser setting
Get the Preferences instance currently assigned to this BrowserSettings
Preferences
instance
Gets the session that is used as default when accessing session settings.
WebIServerSession
instance that
represents the current session opened. Returns null
if none has been
assigned to this BrowserSettings instance.
Returns the value of the key sent as parameter, related with the setting corresponding to the indicated session
keyName | the name associated with the value to return |
---|---|
session | an initialized WebIServerSession instance |
Returns the value of the key sent as parameter, related with the setting corresponding to the default session
keyName | the name associated with the value to return |
---|
Retrives the USER-AGENT string from the header of the browser.
String
value indicating USER-AGENT string from the header of the browserReturns the value of the key sent as parameter
keyName | the name associated with the value to return |
---|
Checks whether a value has been set for the given key name or not
keyName | the name associated with the setting |
---|
Indicates if the browser currently used by the client can handle CSS 2 styles.
boolean
value indicating if the client browser can display
and handle CSS 2 styles.
Indicates if the browser currently used by the client can handle DHTML content or not.
boolean
value indicating if the client browser can display
and handle DHTML code.
Get flag whether System Preference enables a tag or http header X-UA-COMPATIBLE to force IE browsers to render in highest Document Mode.
Sets the default definition of the browser setting. This definition object will be use to determine the value of the browser settings in case the setting requested is not found for the user.
bsDefinitionList | the default definition of the browser settings |
---|
Persists the specified http session value under the specified key
keyName | name under to which the new setting will be saved |
---|---|
value | value of the setting to be saved |
Define a browser setting for allowing the IFrame to be shown on DHTML environments. A request for hidding the IFrame has precedence over one for showing it.
value | String value of a boolean indicating if the IFrame should be shown. |
---|
Set the Preferences instance to use for this BrowserSettings instance
preferences | a valid Preferences instance
|
---|
Sets the session that will be used as default when accessing session settings.
currentSession | an initialized WebIServerSession instance that
represents the current session opened.
|
---|
Persists the specified value under the specified key for the default session
keyName | name under to which the new setting will be saved |
---|---|
value | value of the setting to be saved |
Persists the specified value under the specified key for the indicated session
keyName | name under to which the new setting will be saved |
---|---|
value | value of the setting to be saved |
session | an initialized WebIServerSession instance
|
Persists the specified value under the specified key
keyName | name under to which the new setting will be saved |
---|---|
value | value of the setting to be saved |