| ||
[Back to Index] | ||
This document describes how to write a properties file that maps file extensions to an appropriate content type.
By default, the server sends The server looks for a resource named "/config/mimeTypes.props" for the property definitions. Each line must contain an extension and type. Note that the dot prefix is included for readability, and is required. Here is a sample "mimeTypes.props" file: .class=application/java-class .css=text/css .gif=image/gif .htm=text/html .html=text/html .ico=image/x-icon .jar=application/java-archive .java=text/x-java-source .jpeg=image/jpeg .jpg=image/jpeg .jnlp=application/x-java-jnlp-file .js=application/x-javascript .pdf=application/pdf .png=image/png .ser=application/x-java-serialized-object .txt=text/plain .xml=text/xml .zip=application/zip | ||
Tynamo™-aJile/1.0-RC1 Email: shawn@pobox.com © 2002-2004 Shawn Silverman |