Joerg Heinicke wrote:

Carsten Ziegeler wrote:

- MIME type declared on the reader instance
- MIME type declared for the reader component
- Ask the Reader for a MIME type. A *.doc reader could peek
into the file
 and return either text/plain or application/vnd.msword.
- MIME type declared in WEB-INF/web.xml or by the server.

Is anyone who already voted against swapping 2nd and 3rd item?

Carsten

Silent agreement :-)



Key thing is what is the maximum predictability for this?


What is the difference between point 2 and 3?  In essence it is how it is
written.  Are you caching the mime-type info?  Is this something that could
be cached on a per URL basis?  If so, then we can avoid costly calls to the
underlying medium for the Readers after we have identified it.

--

"They that give up essential liberty to obtain a little temporary safety
 deserve neither liberty nor safety."
                - Benjamin Franklin



Reply via email to