|Re: [equinox-dev] URL Handler service and existing URLHandlers|
You don't need to inherit from AbstractURLStreamHander. You just need
to implement URLStreamHandlerService. So you can extend your
URLStreamHandler and implement URLStreamHandlerService. |
It's a bit of a pain because you will have to define public methods that then invoke the protected super version of the method. You will also need to do the realHandler trick that we do in AbstractURLStreamHandler.
Actually, the easiest thing to do is to copy AbstractURLStreamHandler and make it extend your class rather than URLStreamHandler.
The whole URL/Content handler design in Java is really screwed up, but since we have to work with it, we end up with these complicated solutions.
Pascal Rapicault wrote: