couchbase/couchbase-lite-java-core — pull request #123 by yaronyg (2014-03-24 15:35:37+00:00)
Title: (#122) Make location return a relative URL

Issue #122

This is useful because otherwise we return a cblite:\... URL that nobody
will know how to process (and anyway isn't properly formed since it doesn't
have an authority). By instead returning a relative URL we let the receiver
get a legal path that they can use however they got here in the first
place. This is particularly useful with Listener since we support
multiple protocols and none of them are visible in Router. But the rules
for relative URLs are the same everywhere so by returning a relative
URL we create a useful value regardless of how we got here.