* Owen Rees <owen.rees@...> [2005-09-22 04:07]:
> --On 21 September 2005 16:34 -0400 Alan wrote:
> > Basically, I want control over doc-available . If my special
> > protocol in my URI resolver says the doc is not available, it
> > shouldn't go asking the system URI resolver, which throws an
> > exception when it doesn't know the protocol.
> You can add handlers for your own protocols - see
> I don't know if it will do what you want, but if you are using a
> non-standard URL scheme it is worth taking a look at it.
To my mind, it kind of defeats the purpose of defining a URI
Resolver iface in JAXP, if you have to go and implement java.net
protocol handers anyway.
Without doing any research here, mind you, the problem with
using java.net protocol handlers, is that an XML URI resolver
will return XML, and can return an XML document.
Perhaps the java.net URI resolvers have facilities for returning
objects, but I'm assuming that they are geared towards returning
streams, and that JAXP implemenations are expecting 'text/xml' streams.
My resolvers can return cached documents.
I'm also assuming that the java.net protocol handlers are a lot
more complex since they are generic.
I may be misunderstanding, I'm writing this without doing much
reading. This article, though appears to discuss streams
Alan Gutierrez - alan@...