Diagnosing Problems using the Diagnostic Framework

4-2 Administrators Guide for Oracle Application Development Framework

4.2.1 adf_createFileUrlConnection

Use with WLST: Online or Offline.

4.2.1.1 Description

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

4.2.1.2 Syntax

adf_createFileURLConnectionappName, name, URL

4.2.1.3 Example

adf_createFileURLConnectionmyapp,tempDir,scratchtmp

4.2.2 adf_createHttpUrlConnection

Use with WLST: Online or Offline.

4.2.2.1 Description

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

4.2.2.2 Syntax

adf_createHttpURLConnection appName, name, [URL], [authenticationType], [realm], [user], [password] getADFMArchiveConfig Returns a handle to the ADFMArchiveConfig object for the specified archive. Online or Offline 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. Argument Definition appName Application name for which the connection will 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. Table 4–1 Cont. Browse Commands for WLST Configuration Use this command... To... Use with WLST... WLST Command Reference for ADF Applications 4-3

4.2.2.3 Example

adf_createHttpURLConnectionmyapp,cnn,http:www.cnn.com

4.2.3 adf_setURLConnectionAttributes

Use with WLST: Online or Offline.

4.2.3.1 Description

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

4.2.3.2 Syntax

adf_setURLConnectionAttributesappname, connectionname, attributes

4.2.3.3 Example

adf_setURLConnectionAttributes myapp,cnn,’ChallengeAuthenticationType:digest’, ’AuthenticationRealm:XMLRealm’

4.2.4 adf_listUrlConnection

Use with WLST: Online or Offline.

4.2.4.1 Description

Use this command to list the connections of the application.

4.2.4.2 Syntax

adf_listURLConnectionappname

4.2.4.3 Example

adf_listURLConnection myapp user Optional password Optional Argument Definition appname Application name. connectionname The name of the connection. attributes The array containing attributes to set in keyvalue pairs. Argument Definition appname Application name. Argument Definition