[Registry-dev] dealing with media types
Paul Fremantle
paul at wso2.com
Thu Sep 27 12:42:30 PDT 2007
Isn't this an extension of our media type idea that Sanjiva never sent
the email for?
Paul
Jonathan Marsh wrote:
> It would be nice someday to use a web service to look up unknown extensions
> (Windows has had a simple POX service for this for quite a while). This
> allows new extensions to be mapped to media types. Even better if the table
> content is user-generated, e.g. if I start using the .wsdl2 extension (and I
> do!), and am able to "publish" a mapping of it to application/xml+wsdl,
> others can take advantage of that mapping immediately.
>
> Hmmm, sounds like an online registry of sorts...
>
> Jonathan Marsh - http://www.wso2.com - http://auburnmarshes.spaces.live.com
>
>
>> -----Original Message-----
>> From: registry-dev-bounces at wso2.org [mailto:registry-dev-
>> bounces at wso2.org] On Behalf Of Sanjiva Weerawarana
>> Sent: Tuesday, September 11, 2007 12:26 AM
>> To: registry-dev at wso2.org
>> Subject: [Registry-dev] dealing with media types
>>
>> We had a small discussion here in Colombo about $subject and here are
>> the
>> notes:
>>
>> We need a media type table to keep track of how to determine the media
>> type for a given file extension. This is needed to not force users to
>> have
>> to always give us the media type when the resource they are plopping
>> into
>> the registry has a known file extension.
>>
>> Usage:
>> - When a resource is inserted to the repository, we need to determin
>> the
>> media type. This comes from one of three sources:
>> - user gives it
>> - if the resource name has an extension, look up the extension in
>> the table above
>> - otherwise unknown
>> - When a resource is obtained from the repository, we set the right
>> media
>> type using this table
>>
>> How do we populate the file extension -> media type table? Initially we
>> will just copy the default mime.types file from Apache HTTPD and put it
>> in
>> the core jar file somewhere so that we can have it built in.
>>
>> Thoughts?
>>
>> Sanjiva.
>> --
>> Sanjiva Weerawarana, Ph.D.
>> Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
>> email: sanjiva at wso2.com; cell: +94 77 787 6880; fax: +1 509 691 2000
>>
>> "Oxygenating the Web Service Platform."
>>
>> _______________________________________________
>> Registry-dev mailing list
>> Registry-dev at wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
>
>
> _______________________________________________
> Registry-dev mailing list
> Registry-dev at wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
>
--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair
Office: +1 646 290 8050
Cell: +44 798 447 4618
blog: http://pzf.fremantle.org
paul at wso2.com
"Oxygenating the Web Service Platform", www.wso2.com
More information about the Registry-dev
mailing list