
Type=application/java-serialized-object exts=ser # Copyright (c) 2006 Sun Microsystems, Inc. Other uncommented lines have the following format:Ī sample of the MIME types file is as follows: #-Sun Microsystems Inc. The first line in the MIME types file identifies the file format: The client usually handles it by opening Adobe® FrameMaker® to display Mappings that tells it which application to use to handle which types of data.įor example, if the type is application/x-maker, The client has its own set of user-editable

bin file extensions) or application/x-maker (for. To be handled by another application, its type starts with application/, for example application/octet-stream (for. If the requested resource cannot be displayed in a browser but needs For browser clients, the browser usually displays the

When the client receives the data, it uses the MIME type to decide what These headers include whichever MIME typeĪttributes are known (which is usually type). The Service function generates the data and sends Service method=(GET|HEAD) type=magnus-internal/imagemap fn=imagemap Processing the Response in the Client Using the MIME The response to the client, as indicated by the following directive: For example, if the type is magnus-internal/imagemap, the server uses the imagemap function to generate The server executes whichever Service directive in obj.conf matches the specified type. If the type starts with magnus-internal/, Type=magnus-internal/cgi exts=cgi,exe,bat bat, the type is set to magnus-internal/cgi: map, the type is mapped to magnus-internal/imagemap. Server to do something other than just send the requested resource to theįor example, if the requested resource’s file extension is. Service method=(GET|HEAD|POST) type=*~magnus-internal/* fn=send-fileīy convention, all values of type that require the In obj.conf that contains this instruction is: Use to generate the response to the client.īy default, if the type does not start with magnus-internal/, the server sends the requested file to the client. When deciding which Service directive in obj.conf to The server considers the value of the type attribute Generating the Server Response Using the MIME Type To the entire server or only to specific virtual servers. Because the mime-file element can appear as a child element of both the server and virtual-server elements, you can create MIME types files that apply If you create MIME type files, you must reference them in server.xml using the mime-file element.

Referencing MIME Types Files in server.xml If the server uses a different SAF, such as force-type toĭetermine the type, the MIME types table is not used forįor more details, see ObjectType. Look up the MIME type according to the extension is: The directive in obj.conf that tells the server to For more information on the format of this file, see MIME Types Syntax. The MIME types table is stored inĪ MIME type file. The server to look up the MIME type according to the requested resource’sįile extension in the MIME types table. Most commonly used SAF is type-by-extension, which tells You can use different SAFs to determine the MIME type. Process, the server determines the MIME type attributes of the resource requestedīy the client. Processing the Response in the Client Using the MIME Typeĭuring the ObjectType stage in the request handling

This chapter discusses the following sections: The default MIME types file is mime.types. The enc and lang attributes are rarely used.
#Earthtime chapter 1 video how to#
How to generate the response to the client. The server frequently considers the type when deciding The most commonly used attribute is type. At least one of these attributes mustīe present for each type. MIME types are defined by three attributes: language ( lang), encoding ( enc), and content type ( type). Type mappings to determine the kind of resource that is requested. When the Web Server receives a request from a client, it uses the MIME For example, the MIME types file maps the extensions. The MIME types file in the config directoryĬontains mappings between the Multipurpose Internet Mail Extensions (MIME)
