Hi Cliff,
 
This sounds like a good idea. I've entered a RFE:
 
"Support magic numbers in FileRepresentation"
http://restlet.tigris.org/issues/show_bug.cgi?id=728
 
If you are interested in working on this feature, you are welcome. Just keep in 
mind that this would be part of Restlet core, so we
can't rely on third party libraries.
 
Currently, the Directory can automatically set the media type based on file 
extensions. I don't think java.io.File has any special
capability in this area.
 
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~  <http://www.restlet.org/> 
http://www.restlet.org
Noelios Technologies ~ Co-founder ~  <http://www.noelios.com> 
http://www.noelios.com
 

  _____  

De : Cliff Binstock [mailto:[email protected]] 
Envoye : vendredi 6 fevrier 2009 00:37
A : [email protected]
Objet : Magic File Feature request



Another feature request:

 

It would be very nice to have a way to tell the FileRepresentation to set the 
MediaType based on the magic type determination.

 

There is no way to return the right type based a java.io.File today, is there?

 

Thanks again,

 

Cliff Binstock

Coyote Reporting

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1119023

Reply via email to