webApplicationDirectory

webApplicationDirectory(): String;

The webApplicationDirectory method of the Application class returns the name of the Web application directory that contains transferred files over a TCP/IP connection when your JADE environment is behind a firewall. To configure a firewall, the Firewall parameter in the [WebOptions] section of the JADE initialization file is set to true.

To configure the Web server end of the connection for a firewall:

When a file is transferred to JADE from a Web browser using the default connection mechanism, the text for the text box that generated the transfer is changed by the JadeHttp library to:

<original-file-name>;<temporary-file-name-and-path>

If you have set the Firewall parameter in the [Jadehttp Files] section in the jadehttp.ini file to true, the text is set to:

<original-file-name>;<temporary-file-name>

Your application logic that accesses the file must append the Web application directory to the temporary file name to form the actual path. Use the webApplicationDirectory method to get the name of the Web application directory.

For more details, see "Firewall for the JADE Internet Environment", in Chapter 3 of the JADE Initialization and Configuration Guide. See also the WebSession class createVirtualDirectoryFile method and the JadeWebServiceProvider class createVirtualDirectoryFile method.