G
Gerard Oberle
Our URLStreamHandler, which worked with WebSphere 3.5, no longer works
with 4.0.
We wrote our own sub-class of java.net.URLStreamHandler for a
proprietary URL that does various things, the end result of which is
to return a JPEG fabricated out of other "stuff." We also defined a
subclass of URLConnection to go with it, of course, although it is an
anonymous inner class defined directly in the openConnection method.
Under WebSphere 3.5, we defined the system property
java.protocol.handler.pkgs to be com.jpm.espplus.something, and named
our class com.jpm.ebpp.something.foobar.Handler. This allowed us to
define a URL as
URL xurl = new URL ("foobar:///blah/12345/321/xyz.jpg");
and then get its contents.
Under WebSphere 4, this generates a MalformedURLException, with the
message "unknown protocol: foobar" (Okay, the real names aren't
"ebpp.something.foobar" because I'm trying not to give away everything
on a public newsgroup.) However, the little command line unit test
program works correctly, indicating that on the 1.3.x JDK, this
behavior still works.
I have found something called a URL provider in the WebSphere 4 admin
console, and I defined our protocol with the fully qualified name of
our handler class and the jar file containing it, to no avail.
Does anyone have any idea what is wrong?
Thank you in advance.
Cheers!
- Jerry Oberle
perl -e 'printf "%silto%c%sberle%cearthlink%cnet%c", "ma", 58, "go",
64, 46, 10;'
with 4.0.
We wrote our own sub-class of java.net.URLStreamHandler for a
proprietary URL that does various things, the end result of which is
to return a JPEG fabricated out of other "stuff." We also defined a
subclass of URLConnection to go with it, of course, although it is an
anonymous inner class defined directly in the openConnection method.
Under WebSphere 3.5, we defined the system property
java.protocol.handler.pkgs to be com.jpm.espplus.something, and named
our class com.jpm.ebpp.something.foobar.Handler. This allowed us to
define a URL as
URL xurl = new URL ("foobar:///blah/12345/321/xyz.jpg");
and then get its contents.
Under WebSphere 4, this generates a MalformedURLException, with the
message "unknown protocol: foobar" (Okay, the real names aren't
"ebpp.something.foobar" because I'm trying not to give away everything
on a public newsgroup.) However, the little command line unit test
program works correctly, indicating that on the 1.3.x JDK, this
behavior still works.
I have found something called a URL provider in the WebSphere 4 admin
console, and I defined our protocol with the fully qualified name of
our handler class and the jar file containing it, to no avail.
Does anyone have any idea what is wrong?
Thank you in advance.
Cheers!
- Jerry Oberle
perl -e 'printf "%silto%c%sberle%cearthlink%cnet%c", "ma", 58, "go",
64, 46, 10;'