Is there a way, to tell Jersey what it should threat them as equal?
My problem is that I'm using sub locators and it seems that jersey stop
finding a sub resource when hitting the empty path segment. If I understand
you right, jersey should give me an empty resource and it would be my turn
to do the right thing.
But empty path isn't supported by jersey right?
Thanks,
Daniel
2008/12/29 Julian Reschke <julian.reschke_at_gmx.de>
> Daniel Manzke wrote:
>
>> Hi,
>>
>> a short question.
>>
>> Are they equal? :) Does jersey threat them as equal?
>>
>> - http://localhost/filesystem//ECM%20Search/hitlist_suchseite_1.jpg
>> - http://localhost/filesystem/ECM%20Search/hitlist_suchseite_1.jpg
>>
>
> Depends on the equality relation :-) With URIs there can be many.
>
> In this case, one of the URIs contains an empty path segment. It depends on
> the use case how to compare them.
>
> In *practice* I don't see anybody using empty path segments on purpose,
> thus I'd treat them as a client error (pasting together a URI), and compare
> them as equal.
>
> BR, Julian
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>
--
Mit freundlichen Grüßen
Daniel Manzke