Shayton Equilibrium Kitchen Utensil 2003 User Manual

Page of 194
20 
 Chapter 2 
• 
• 
• 
D e f i n i n g   A d d i t i o n a l   F S N e t   V i r t u a l   F i l e s y s t e m s
Any number of virtual filesystems can be defined in addition to standard “http” and “ftp” 
filesystems. The only reason to define additional HTTP or FTP filesystems would be to 
associate different property settings with the different filesystems. For example, if you 
needed to access network files via two different proxy servers, you would need two 
different filesystems, as the proxy server can not be specified in a virtual file path (in a 
URL). Another reason to define additional filesystem would be to associate different user 
names and passwords with each filesystem, or to differ the caching behavior between 
filesystems.
To define a HTTP filesystem, only the Specifier property is required. The following is 
an example that defines a new HTTP filesystem named “media” and sets the default user 
info for that filesystem:
filesystem.fsnet.media.Specifier=media
filesystem.fsnet.media.UserNameAndPassword=joeblow:tokyo
A file path to a resource on this filesystem would look like this:
media://www.apple.com/images/applelogo.jpg
To define a FTP filesystem, the Ftp property must be specified to indicate that the 
filesystem will utilize the FTP protocol. The following is an example that defines a new FTP 
filesystem named “bar” that has caching disabled:
filesystem.fsnet.bar.Specifier=bar
filesystem.fsnet.bar.Ftp=1
filesystem.fsnet.bar.RefreshInterval=-1
The name of the filesystem, as specified after the “fsnet” portion of property name, need 
not match the value of the Specifier property. The filesystem name is used to refer to the 
filesystem in the properties file. The Specifier defines what word appears at the front of a 
virtual file path to indicate that filesystem. By convention, and for clarity, these two values 
should always be the same.
Configuring the FSNet File Systems
The FTP and HTTP file systems are disabled by default. To configure the file systems, you 
need to add entries to the local.properties file. The basic entries required to enable 
both file systems are:
filesystem.fsnet.http.Specifier=http
filesystem.fsnet.ftp.Specifier=ftp
filesystem.fsnet.ftp.FTP=1