This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 18750 - Ask existing loaders to use MIME types properly
Summary: Ask existing loaders to use MIME types properly
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on: 15195 26237
Blocks: 16191 16389 20203
  Show dependency tree
 
Reported: 2001-12-17 22:32 UTC by Jesse Glick
Modified: 2008-12-22 23:27 UTC (History)
3 users (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2001-12-17 22:32:38 UTC
More like a container task that could depend on other tasks: for 3.4 we should
start to use MIME types consistently for various loaders. E.g.:

- ExtensionList should handle MIME wildcards and understand attributes listed
after a semicolon as being specializations (e.g. "text/html" will match actual
type "text/html;charset=UTF-8")

- XMLDataObject in APIs, as well as in xml module, should recognize text/xml as
well as text/*+xml, and use a MIMEResolver rather than file extension list

- TXTDataLoader should recognize text/plain, and use a MIMEResolver

- ditto HTMLLoader (text/html), ImageLoader (image/*), ....

- CloneableEditorSupport could find the right editor kit using a better lookup
which understands MIME attributes and wildcards, too; e.g. setting its
contentType to text/x-ant+xml should use a text/xml kit if available;
JEditorPane's registration is not so clever

- if we make a meta-loader which delegates to other loaders by MIME type, it
should check first for an exact match, then exact module attributes, then a
wildcard match, etc.
Comment 1 Jesse Glick 2002-02-07 12:13:22 UTC
Petr do you want to take this one over? It might be exactly what you
are doing anyway, or parts of it...
Comment 2 phamernik 2002-02-07 12:43:30 UTC
Sure. I am taking it.
Comment 3 Jaroslav Tulach 2005-01-28 08:47:59 UTC
Getting rid of all issues. If there is anything that should be done
now, please be specific.