cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: CXF Rest service does not do the input date validation
Date Tue, 30 Apr 2013 11:44:42 GMT
Hi
On 30/04/13 07:06, umarul Farooq wrote:
> Hi All,
>
> I developed a Rest service using Cxf 2.7.3 api.
>
> I have used a bean class which contains a property called openDate and its
> data type is java.sql.Timestamp and i provide the TimestampAdaptor for the
> same.
>
> When rest client gives the invalid date, it is not throwing the exception
> rathen it is assigning the null reference in the openDate property.
>
> Could you please let me know how to ebable the invalid date validation in
> the service.
>

Is that bean a JAXB bean ? If yes then try to enable a schema validation:
http://cxf.apache.org/docs/jax-rs-data-bindings.html#JAX-RSDataBindings-Schemavalidation

Cheers, Sergey
> Thanks&  Regards
> Umar.
>
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/CXF-Rest-service-does-not-do-the-input-date-validation-tp5726943.html
> Sent from the cxf-user mailing list archive at Nabble.com.


-- 
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

Mime
View raw message