Class actuate.RequestOptions
Description
The request reportexplorers that loginServlet requires to authenticate requests. RequestOptions is used by other classes to provide authentication information. It also adds any customized reportexplorers to the request URL.
Constructor
Syntax
Constructs a new RequestOptions object.
Function summary
Table 4-40 lists actuate.RequestOptions functions.
Table 4-40 actuate.RequestOptions functions Sets the repository type: enterprise or workgroup.actuate.RequestOptions.getIServerUrl
Syntax
Gets the BIRT iServer URL value.
Returns
String. The BIRT iServer URL value.
Example
To retrieve the BIRT iServer URL value for the RequestOptions object reqOpts, use code similar to the following:
actuate.RequestOptions.getLocale
Syntax
Gets the current locale or null if no locale is set.
Returns
String. The locale value; null for default.
Example
This example pops up an alert box if the locale value is set to the default.
actuate.RequestOptions.getRepositoryType
Syntax
Gets the repository type: enterprise or workgroup.
Returns
String. Valid repository type values are enterprise or workgroup.
Example
To retrieve the repository type value for the RequestOptions object reqOpts, use code similar to the following:
actuate.RequestOptions.getVolume
Syntax
Returns
String. The Encyclopedia volume.
Example
To retrieve the Encyclopedia volume for the RequestOptions object reqOpts, use code similar to the following:
actuate.RequestOptions.getVolumeProfile
Syntax
Gets the volume profile by name. Valid volume profile names are listed in the service’s WEB-INF\volumeProfile.xml file.
Returns
Example
To retrieve the volume profile for the RequestOptions object reqOpts, use code similar to the following:
actuate.RequestOptions.setCustomParameters
Syntax
Sets a custom parameter in the request URL.
Parameters
object. A mapped value and name pair for a URL parameter.
Example
To add "&myParam=myValue" in a request URL derived from requestOptions object, use code similar to the following:
actuate.RequestOptions.setIServerUrl
Syntax
Set the BIRT iServer URL value.
Parameters
String. The BIRT iServer URL value.
Example
This example sets the BIRT iServer URL value for the reqOpts RequestOptions object.
actuate.RequestOptions.setLocale
Syntax
Parameters
String. The locale value. Use null to use the default locale.
Example
This example resets the locale value for the reqOpts RequestOptions object to the default.
actuate.RequestOptions.setRepositoryType
Syntax
Sets the repository type: enterprise or workgroup.
Parameters
String. Valid repository type values are enterprise or standalone, as designated by the Actuate web application service with which to connect. Use the following constants:
Example
This example sets the repository to local.
actuate.RequestOptions.setVolume
Syntax
Parameters
String. The Encyclopedia volume.
Example
To set the Encyclopedia volume to marcom if the RequestOptions object reqOpts volume is null, use code similar to the following:
if( reqOpts.getVolume( ) == null){actuate.RequestOptions.setVolumeProfile
Syntax
Sets the volume profile to use. Valid volume profile names are listed in the service’s WEB-INF\volumeProfile.xml file.
Parameters
Example
To set the volume profile to myServer if the RequestOptions object reqOpts volume profile is null, use code similar to the following:
if( reqOpts.getVolume( ) == null){
(c) Copyright Actuate Corporation 2011 |
![]() |