Determining the MIME Type

                                                                                                                                                                                                                                                                                                                                      Back to [Book]     [Topic]

Determining the MIME Type

During the ObjectType stage in the request handling process, the server determines the MIME type attributes of the resource requested by the client. You can use different SAFs to determine the MIME type. The most commonly used SAF is type-by-extension, which tells the server to look up the MIME type according to the requested resource’s file extension in the MIME types table. The MIME types table is stored in a MIME type file. For more information on the format of this file, see MIME Types Syntax.

The directive in obj.conf that tells the server to look up the MIME type according to the extension is:

ObjectType fn= type-by-extension

If the server uses a different SAF, such as force-type to determine the type, the MIME types table is not used for that particular request.

For more details, see ObjectType.

Labels

configurationfile configurationfile Delete
+configguide +configguide Delete
java java Delete
server server Delete
configuration configuration Delete
administrator's administrator's Delete
sun sun Delete
webserver webserver Delete
application application Delete
system system Delete
webserver70 webserver70 Delete
sunjava sunjava Delete
web web Delete
file file Delete
guide guide Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact