Server Mime Type Configuration for J2ME

2/18/2009 11:40:00 ÖÖ

(0) Comments

File Type and Extension Mime Type
Java application JAR files (.jar) application/java
Java application JAD files (.jad) text/vnd.sun.j2me.app-descriptor
Image WBMP (Wireless BMP) files (.wbmp) image/vnd.wap.wbmp
WML files (compiled) (.wmlc) application/vnd.wap.wmlc
WML files (plain text) (.wml) text/vnd.wap.wml
WMLScript files (compiled) (.wmlsc) application/vnd.wap.wmlscriptc
WMLScript files (plain text) (.wmls) text/vnd.wap.wmlscript

 

You can add the following lines to httpd.conf(/etc/httpd/conf/httpd.conf) or with apache, you can do this on a per-directory basis by adding the following lines to your .htaccess file:

AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/java-archive jar
...

IIS and WAP. Configuring IIS to deliver WML (WAP content)
http://www.java-samples.com/showtutorial.php?tutorialid=742

Finding the MIME Media Types that will be Accepted by a User Agent and Common Mobile MIME Types List
http://www.developershome.com/wap/detection/detection.asp?page=httpHeaders

Yasin Hasan Karanfil