Java Web Server 2.0  

Administration Tool: MIME Types

Panel Description


Documentation Contents / Documentation Index / Glossary / Administration Tool Help
Purpose
The MIME Types page enables you to add, edit, or delete suffix mappings.

Suffix mappings are used to map file name extensions (filename.ext) to MIME types (type/subtype). When Java Web Server(TM) receives a file request, the MIME type indicated by the suffix mapping tells the server the format in which the requested data should be returned to the client.

If Java Web Server can't find a suffix mapping entry in the list, it maps the file name suffix to the default MIME type text/plain. This means that the server uses the text transfer method and assumes that it is returning plain text.

Note:
The file name extension is read as lower case (thus, HTML is equivalent to html) for the purposes of mapping it against the appropriate MIME type. For instructions on how to make extensions case sensitive, see Setting Case-sensitive MIME Mappings.
 

Location of panel in Administration Tool:
Log In -> Web Service -> Manage -> Setup
              |_ MIME Types
Fields
Extension
A list of possible extensions that could be attached to any file request. For example, the .gif extension indicates that the requested file is of the type/subtype image/gif (Graphics Image Format).

Tip:
For easier suffix mapping and fielding of requests, you can enter spelling variations for common extensions into the Extension list. For example, you could enter both gif and giff into the list as variations of the type/subtype image/gif. This way, Java Web Server will properly service requests for the file type even if the requesting suffix is misspelled.
 

Type/Subtype
A list of file types recognized by Java Web Server. The Type part of the pair indicates the generic file category that can be served by Java Web Serverb (for example, audio, application, image, and the like). The Subtype part of the pair indicates the exact file extension for that generic category.
 
Buttons
Add
Adds a new MIME type to the MIME list.
 
Modify
Selects a field and enables you to modify the selected MIME type.
 
Remove
Removes the selected MIME type from the MIME list.
 
Save
Writes your changes to Java Web Server and changes the settings.
 
Revert
Returns to the previously saved settings for all fields in the screen. Use this button to undo changes you have not yet saved.

Note: If you Add, Modify, or Remove a MIME type, you must Save before the change will take effect.

Procedures
To Create a New Suffix Mapping
To Remove a Suffix Mapping
To Modify a Suffix Mapping
To Set Case-sensitive MIME Mappings

Top
java-server-feedback@java.sun.com
Copyright © 1999 Sun Microsystems, Inc.
All Rights Reserved.