Rewriter
Chapter 2 Portal Server Secure Remote Access Architecture 47
NetFile also enables users to select multiple files and compress them by using GZIP
and ZIP compression. Users can select multiple files and send them in a single
email as multiple attachments. NetFile also uses the SSO token of Access Manager
to access the user’s email settings (such as IMAP server, user name, password, and
reply-to address) for sending email.
Double-clicking a file in the NetFile window launches the application
corresponding to the MIME type and opens the file. NetFile provides a default
MIME types configuration file that has mappings for most popular file types
(extensions) and MIME-types that you can edit for adding new mappings.
You can search for files and display the list in a separate window using NetFile.
The results of each search are displayed in a new window while maintaining the
previous search result windows. The type of character encoding to be used for a
particular share is user configurable, and is part of the share’s setting. If no
character encoding is specified, NetFile uses ISO-8859-1 while working with the
shares. The ISO-8859-1 encoding is capable of handling most common languages.
ISO-8859-1 encoding gives NetFile the capability to list files in any language and to
transferring files in any language without damaging the file contents.
NetFile creates temporary files only when mailing files (in both NetFile Java 1 and
Java 2). Temporary files are not created during uploadi ng and downloading files
between Windows file systems and the local file systems over the jCIFS protocol.

NetFile and Multithreading

NetFile uses multithreading to provide the flexibility of running multiple
operations simultaneously. For example, users can launch a search operation, start
uploading files, then send files by using email. NetFile performs all three
operations simultaneously and still permit the user to browse through the file
listing.
Rewriter
Rewriter is an independent component that translates all URIs (in both HTML and
JavaScript code) to ensure that the intranet content is always fetched through the
Gateway. You define a ruleset (a collection of rules) that identifies all URLs that
need to be rewritten in a page. The ruleset is an XML fragment that is written
NOTE NetFile supports deletion of directories and remote files. All the
contents of remote directories are deleted recursively.