dev@jersey.java.net

Nullable Path Param

From: Зоряна <flaiz_at_mail.ru>
Date: Thu, 08 Jan 2009 18:59:18 +0300

Hello.


Maybe this is simple question ... How can I set up null value into @PathParam
I have next WS UTL: http:\\localhost:8080\wsTest\items\{itemId}\{formatId}\{url}
where Integer formatId and String url can be null, in this case I will use default format and default url.

When I try http:\\localhost:8080\wsTest\items\1\1\ I am getting response with status 404
When I try http:\\localhost:8080\wsTest\items\1\1\null In this case null is string, but not real null
When I try http:\\localhost:8080\wsTest\items\1\null\null Again 404 status, because null is string but {formatId} is Integer

Can You help me.
I didn't find helpful information in the net

Thanks,
Flaiz