users@jersey.java.net

[Jersey] Is there any DefaultParamterValueProvider?

From: Tommaso Nolli (ABACO S.p.a.) <"Tommaso>
Date: Wed, 27 Nov 2013 15:51:57 +0100

Hi all,
I'm trying to use a guava com.google.common.base.Optional as a paramter
of a GET service method. I had to write a ParamConverterProvider in
order to be allowed to use it but the
ParamConverterProvideris not even called when the paramter is not passed
in by the client, so I get a null reference instead of having any
chanche to build an Optional.absent().

Is there any way to have a not null value for missing parameters?
Using a @Default will not do the trick because I will not be able to
know if the parameter has been passed in or not.

Any hint will be apreciated.

Thanks,
Tommaso