You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2015/04/17 11:50:59 UTC

[jira] [Resolved] (CXF-6342) Undocumented feature to pass dates as Duration in JAX-RS-search

     [ https://issues.apache.org/jira/browse/CXF-6342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sergey Beryozkin resolved CXF-6342.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.5
         Assignee: Sergey Beryozkin

> Undocumented feature to pass dates as Duration in JAX-RS-search 
> ----------------------------------------------------------------
>
>                 Key: CXF-6342
>                 URL: https://issues.apache.org/jira/browse/CXF-6342
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>    Affects Versions: 3.0.4
>            Reporter: Vjacheslav Borisov
>            Assignee: Sergey Beryozkin
>            Priority: Minor
>             Fix For: 3.0.5
>
>
> Occasionally found useful, but undocumented feature to pass dates as Duration in JAX-RS-search. I think it should be documented in
> http://cxf.apache.org/docs/jax-rs-search.html
> {code:title=AbstractSearchConditionParser.java|borderStyle=solid}
>             // is that duration?
>             try {
>                 Date now = new Date();
>                 DatatypeFactory.newInstance().newDuration(value).addTo(now);
>                 return now;
>             } catch (DatatypeConfigurationException e1) {
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)