dev@jsr311.java.net

Re: JSR311: Java mime type

From: Roy T. Fielding <fielding_at_day.com>
Date: Fri, 22 May 2009 12:55:58 -0700

On May 22, 2009, at 4:15 AM, Bill Burke wrote:
> Paul Sandoz wrote:
>> On May 22, 2009, at 3:39 AM, Bill Burke wrote:
>>> I didn't see any Java mime types registered with Iana. Maybe
>>> this is something we should think about, define in JAX-RS, and
>>> register with Iana?
>> Yes, JAX-RS would be a reasonable place to specify any such media
>> type declarations.
>>> First thoughts are something like:
>>>
>>> application/*+java;version=x
>>>
>> For Java source, classes, jars, wars, web start stuff?
>> Does it make sense for individual classes?
>
> My though would be for serialized objects. I know there is one
> defined somewhere in Java SE javadocs:
>
> application/x-java-serialized-object
>
> But, I was hoping for the *+ and version property as well (and have
> it registered with IANA.
>
> I guess we could define a application/war, application/ear,
> application/jar, etc... too

The ones in common use (mostly unregistered):

% egrep '(java|jcp|j2me|j2se)' mime.types
application/java-archive jar
application/java-serialized-object ser
application/java-vm class
application/javascript js
application/vnd.jcp.javame.midlet-rms rms
application/x-java-jnlp-file jnlp
text/javascript
text/vnd.sun.j2me.app-descriptor jad
text/x-java-source java

....Roy