So, if I do the following:

 Client c  = Client(Protocol.valueOf("exist"));
 c.get("exist:///foo.xml") ...

the remaining part of the URI passed to the client helper is
the string "exist:///foo.xml".  That doesn't quite make sense to me.


If I do:

 Client c  = Client(Protocol.valueOf("exist"));
 Reference baseRef = new Reference("exist:///");
 c.get(new Reference(baseRef,"foo.xml")) ...

I get an exception when you try to get the remaining part.

What works is:

 Client c  = Client(Protocol.valueOf("exist"));
 Reference baseRef = new Reference("exist:///");
 c.get(new Reference(baseRef,"exist:///foo.xml")) ...

So, what I am missing about how Reference is handled
when it is passed to a client helper?

--Alex Milowski

Reply via email to