11 Application Development Framework (ADF) Custom WLST Commands

The following sections describe the WLST custom commands and variables in detail. Topics include:

Note:

To use these ADF custom WLST commands, you must invoke the WLST script from the Oracle Common home. See "Using Custom WLST Commands" in the Oracle Fusion Middleware Administrator's Guide.

Overview of WLST Command Categories

WLST commands are divided into the following categories.

Table 11-1 WLST Command Categories

Command Category Description

Commands for ADF-based URL Connections

Navigate the hierarchy of configuration or runtime beans and control the prompt display.


Commands for ADF-based URL Connections

Use the commands in Table 11-1 to managing URL-based connections.

Table 11-2 Browse Commands for WLST Configuration

Use this command... To... Use with WLST...

adf_createFileUrlConnection

Create a new ADF File connection.

Online or Offline

adf_createHttpUrlConnection

Create a new ADF URL connection.

Online or Offline

adf_setURLConnectionAttributes

Set or edit the attributes of a newly created or existing ADF connection.

Online or Offline

adf_setURLConnectionAttributes

Create a new connection.

Online or Offline


adf_createFileUrlConnection

Use with WLST: Online or Offline

Description

Creates a new connection based on the oracle.adf.model.connection.url.FileURLConnection connection class.

Syntax

adf_createFileURLConnection(appName, name, URL)
Argument Definition
appName Application name for which the connection that will be created.
name The name of the new connection.
URL The URL associated with this connection.

Example

adf_createFileURLConnection('myapp','tempDir','/scratch/tmp')

adf_createHttpUrlConnection

Use with WLST: Online or Offline

Description

Use this command to create a new connection based on the oracle.adf.model.connection.url.HttpURLConnection connection type class.

Syntax

adf.createHttpURLConnection (appName, name, [URL], [authenticationType], [realm], [user], [password]
Argument Definition
appName Application name for which the connection is to be created.
name The name of the new connection.
url (Optional) The URL associated with this connection.
authenticationType (Optional) The default is basic.
realm (Optional) If this connection deals with authentication, then this should be set. The default is basic.
user (Optional)
password (Optional)

Example

adf_createHttpURLConnection('myapp','cnn','http://www.cnn.com') 

adf_setURLConnectionAttributes

Use with WLST: Online or Offline

Description

Use this command to set or edit the attributes of a newly created or existing ADF connection.

Syntax

adf_setURLConnectionAttributes(appname, connectionname, attributes)
Argument Definition
appname Application name for which the connection that will be created.
connectionname The name of the new connection.
attributes The array containing attributes to set in key/value pairs.

Example

adf_setURLConnectionAttributes ('myapp','cnn','ChallengeAuthenticationType:digest',
'AuthenticationRealm:XMLRealm'

adf_listUrlConnection

Use with WLST: Online or Offline

Description

Use this command to create a new connection based on the oracle.adf.model.connection.url.FileURLConnection connection class.

Syntax

adf_listURLConnection(appname, name, URL)
Argument Definition
appname Application name for which the connection will be created.
name The name of the new connection.
URL The URL associated with this connection.

Example

adf_createFileURLConnection ('myapp','tempDir','/scratch/tmp')