dev@glassfish.java.net

[Fwd: Adding new mime types from asadmin command]

From: Tom Amiro <Tom.Amiro_at_Sun.COM>
Date: Tue, 18 Mar 2008 08:10:45 -0500

Hi,

Can anyone answer Yasir's question.

Tom

attached mail follows:



Hi All,

Is there a way to add some new mime-types in Glassfish using asadmin
command-line utility?

"create-mime" command existed sometime in history (ref.
http://docs.sun.com/app/docs/doc/816-6443/6mch3fo70?l=it&a=view) but in
latest version of Glassfish I did not find any possibility.

 

Please guide so that we could add some additional mime-types (by giving
file extensions and their types).

 

At least following are our required file extensions to be associated.

<mime-mapping>

    <extension>cab</extension>

    <mime-type>application/octet-stream</mime-type>

  </mime-mapping>

  

  <mime-mapping>

    <extension>prc</extension>

    <mime-type>application/x-pilot</mime-type>

  </mime-mapping>

 

Thank you in advance,

Yasir