The Config file web.xml
The web file service has a configuration file to setup the necessary data for the servlets.
Key | Default | Description |
Webmaster | myaddress@mycompany.com | The e-mail address of the administrator to whom questions and comments regarding this application should be addressed to. |
tracemasks | Default all 0 | Trace masks and flags for packages and classes: 0 - no output 1 - trace output 2 - debug output 3 - trace and debug output |
Data Service
A Servlet to handle the data information about file operations. It has a dual role. One role is as a singleton that can be accessed from other classes of the application. The other role is of a servlet that can be POSTed to.
Key | Default | Description |
ECIHandleLifeTime | 3600 | lifetime in seconds before an ECIHandle expires 5min=300 1hr=3600 1day=86400 |
Checkin Service
Accepts a file posted as multi-part form data and checks it into the file management system. A free (for some requirements see the license) MultipartParser is available from Jason Hunter (www.servlet.com) and his cos.jar is used by FmsCheckinServlet.
Key | Default | Description |
maxPostSize | 100242880 | The maximum size in bytes a posted file may have. |
Checkout Service
Handles checkouts from the file management system. File check-outs can be requested from this servlet. A handle must be supplied that has been issued from the application. FmsCheckoutServlet will then initiate a communication with the FmsDataServlet to finish the operation.
Delete Service
Handles delete requests from the file management system File deletes can be requested from this servlet. A handle must be supplied that has been issued from a data source. FmsDeleteServlet will then initiate a communication with the data source to finish the operation.
The following content types are currently mapped to the associated file extensions in the Tomcat
file.Further
content types can be added in the web.xml file!
Mime Content-Type | File Extensions | Comment |
application/msword | .doc | Microsoft Word Documents |
application/octet-stream | .exe, .bin | Binary |
application/pdf | Adobe Portable Document Format | |
application/postscript | .ps | Adobe Postscript |
application/rtf | .rtf | Microsoft Rich Text Format Docs |
application/vnd.framemaker | .fm, .frm, .frame | Adobe Frame Maker |
application/vnd.hp-HPGL | .pgl | HP Graphics Language files |
application/vnd.lotus-1-2-3 | .wks,.wk3,.wk4,.wg2,.wt4,.123 | Lotus 123 Files |
application/vnd.lotus-freelance | .pre,.prz,.mas,.prs | Lotus Freelance Files |
application/vnd.lotus-wordpro | .lwp | Lotus Wordpro Files |
application/vnd.ms-access | .mdb | Microsoft Access Files |
application/vnd.ms-excel | .xls,.xlc | Microsoft Excel Files |
application/vnd.ms-powerpoint | .ppt,.pot,.pps | Microsoft Powerpoint Files |
application/vnd.ms-project | .ppm | Microsoft Project Files |
application/vnd.visio | .vsd,.vst,.vsw,.vss | Visio Drawing File |
application/x-mif | .mif | Maker Interchange Format (Frame) |
application/x-msbinder | .obd | Microsoft Binder Files |
application/x-quattro-win | .wb1,.wb2,.wb3 | Quattro Pro for Windows Files |
image/cgm | .cgm | Computer Graphic Metafile (CGM) |
image/g3fax | .fax | Fax |
image/gif | .gif | GIF image files |
image/jpeg | .jpg,.jpeg,.jpe | JPEG image files |
image/png | .png | Portable Network Graphics Files |
image/tiff | .tif,.tiff | TIFF Image Files (.TIF) |
image/vnd.dwg | .dwg | AutoCad files |
image/vnd.dxf | .dxf | AutoCad Interchange Files (.DXF) |
image/vnd.fpx | .iges, .igs | Kodak Flash Pix |
model/vnd.dwf | .dwf | AutoCad drawing files |
text/x-vcard | .vcf | VCard |
Several DIFFERENT content types use the same extensions:
Mime Content-Type | File Extensions | Comment |
application/wordperfect5 | .wpd | WordPerfect 5 documents |
application/wordperfect5.1 | .wpd | WordPerfect 5.1 documents |
application/x-wordperfect6 | .wpd | WordPerfect 6 documents |