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.