I need to convert Java 8 LocalDate in client side received from REST Service in JSON form. I read about ParamConverterProvider, but looks like it works only for REST resource methods i.e. server side.
Is there any thing to convertt LocalDate on client side.
I tried implementing ParameterHandler<LocalDate> and registered it in jaxrs:client providers. I can see constructor is called , but not the method 'fromString'. Am I missing anything ?
Below is my implementation:
Client stub file:
Please note that I am able to fetch JSON string If I invoke resource directly from browser. SO only issue is my JavaLocalDateParamHandler "fromString" method is not called during conversion.
Does it work only on server side where REST resources(i.e. methods with diff annotations) are present
"I know this defies the law of gravity... but I never studied law." -B. Bunny Defiant tiny ad: