Date: Fri, 31 Jan 1997 17:14:07 -0500
From: carlab@brian.East (Carla Carlson - JavaSoft East)
Message-Id: <199701312214.RAA06130@brian.East.Sun.COM>
To: java-security@java0.javasoft.com
Subject: protocols&security
----- Begin Included Message -----
>From mao@lava.de Fri Jan 31 17:13 EST 1997
From: Matthias Oelmann <mao@lava.de>
Reply-To: mao@lava.de
X-Mailer: Mozilla 3.01 (Win95; I)
Mime-Version: 1.0
To: jdk-comments@java.Eng.Sun.COM
Subject: protocols&security
Content-Transfer-Encoding: 7bit
X-Lines: 35
Hello,
This is something that bugs me but is not really a bug:
i cannot define my own protocol with the castanet tuner
because of the security manager. that is because
i cannot define a class sun.net.www.protocol.<protocol>.Handler
(Cause: securityException, cannot define classes under 'sun')
it is a one-line change in URL.java, but I had to reimplement
the whole URL Classes to get my code running.
consider this for jdk 1.1:
(Line 409 in URL.java, JDK 1.02)
packagePrefixList += "sun.net.www.protocol";
a simple change (like: "misc.protocol") would help a lot!
thanks,
Matthias
LAVA Gesellschaft fuer Digitale Medien
Hamburg, Germany
>
> Hi Matthias,
>
> I am afraid that it is currently not possible to define
> your own protocol handlers. Sorry.
>
> Have fun,
>
> Arthur van Hoff
----- End Included Message -----