[security-dev 00944]: Re: hg: jdk7/tl/jdk: 6811297: Add more logging to HTTP protocol handler

Jean-Christophe Collet Jean-Christophe.Collet at Sun.COM
Wed Jul 1 11:23:52 UTC 2009


Yes, it would be nice and there are actually already 2 RFEs covering this:
4640805: Protocol and content handlers SPI
6249864: make it easier to write custom url handlers

However this is no small task, specially considering the compatibility 
and security constraints.
So far resources (or lack of thereof) have prevented us of working on it.

Jim Andreou wrote:
> Hi,
>
> A quick note: Wouldn't it be nice if clients could add URL handling 
> interceptors and monitor incoming/outgoing data themselves? For any 
> URL protocol they would be interested into, not http in particular. 
> Recently I looked into the existing URL protocol handling architecture 
> (e.g. [1], which promises a new era for protocol handlers, but it 
> seems that the existing support is cumbersome and  restricting - 
> sorry, I can't elaborate right now) but it seems to make any such 
> scenario impossible. 
>
> Any comments?
>
> Thanks,
>
> Dimitris Andreou
>
> [1] http://java.sun.com/developer/onlineTraining/protocolhandlers/
>
> 2009/6/25 <jean-christophe.collet at sun.com 
> <mailto:jean-christophe.collet at sun.com>>
>
>     Changeset: 70c0a927e21a
>     Author:    jccollet
>     Date:      2009-06-25 18:56 +0200
>     URL:       http://hg.openjdk.java.net/jdk7/tl/jdk/rev/70c0a927e21a
>
>     6811297: Add more logging to HTTP protocol handler
>     Summary: Added extra logging to HttpURLConnection and HttpClient.
>     Added a capture tool.
>     Reviewed-by: chegar
>
>     ! make/sun/net/FILES_java.gmk
>     + src/share/classes/sun/net/www/http/HttpCapture.java
>     + src/share/classes/sun/net/www/http/HttpCaptureInputStream.java
>     + src/share/classes/sun/net/www/http/HttpCaptureOutputStream.java
>     ! src/share/classes/sun/net/www/http/HttpClient.java
>     + src/share/classes/sun/net/www/protocol/http/HttpLogFormatter.java
>     ! src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java
>
>




More information about the security-dev mailing list