classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] Patch: fix for explicit mime types and text/html


From: jrandom
Subject: Re: [cp-patches] Patch: fix for explicit mime types and text/html
Date: Wed, 4 Aug 2004 17:44:09 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> The URLConnection change looks fine to me. Care to write a
> ChangeLog entry?
>
> I think text/html.java isn't really neccessary, and text/plain.java
> should also be removed. Instead, I think URLConnection.getContent()
> should just fall back to returning an InputStream when it gets a
> MIME type that it doesn't recognise. This should be fixed when we
> merge again with libgcj's URLConnection implementation.

Ok, here's a revised patch w/ changelog entry.  The
GenericHandler.java is plain renaming of the old plain.java, but
is referenced explicitly from the URLConnection (which now never
throws UnknownServiceException - it either has an explicit
handler at gnu.java.net.content.* or it uses the GenericHandler).

If there's another way I should go at the fallback handling, let me
know.

=jr

2004-08-05  jrandom <address@hidden>

        * java/net/URLConnection.java   (getContent): Add support for
        explicit mime types, plus a fallback onto a generic content
        type handler.
        * gnu/java/net/content/GenericHandler.java: New file
        * gnu/java/net/content/text/plain.java: Removed

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.1

iQA/AwUBQRGBPxpxS9rYd+OGEQK2XwCZAauk97d7IpZ10e8az/aoRDFBIBsAoNKr
ZxgcN/OUDIuukZ2frWrmwiBk
=YDu+
-----END PGP SIGNATURE-----

Attachment: URLConnection.java
Description: Text document

Attachment: GenericHandler.java
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]