Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6342

Undocumented feature to pass dates as Duration in JAX-RS-search

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.4
    • 3.0.5
    • JAX-RS
    • None
    • Unknown

    Description

      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

      AbstractSearchConditionParser.java
                  // is that duration?
                  try {
                      Date now = new Date();
                      DatatypeFactory.newInstance().newDuration(value).addTo(now);
                      return now;
                  } catch (DatatypeConfigurationException e1) {
      
      

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            slavb18 Vjacheslav Borisov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: