Uploaded image for project: 'Solder'
  1. Solder
  2. SOLDER-276

conversions for Date, Time, Calendar and Enum in HTTP state producers

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.0.Beta1
    • Component/s: Servlet
    • Labels:
      None
    • Estimated Difficulty:
      Medium

      Description

      @RequestParam, @HeaderParam and @CookieParam currently only support conversation if the type has a valueOf method. To align with JAX-RS, also support conversion for the following types:

      • Date
      • Time
      • Calendar
      • Enum

        Gliffy Diagrams

          Activity

          Hide
          dan.j.allen Dan Allen added a comment -

          Enum was simple. That already has a valueOf method.

          java.sql.Date and java.sql.Time already have valueOf, so they work already.

          Date and Calendar are tricky because it requires a format. I'm going to close this w/ basic support, then see if we can improve on it either by integrating w/ Seam International, or allowing the use of a format pattern annotation at the injection point.

          Show
          dan.j.allen Dan Allen added a comment - Enum was simple. That already has a valueOf method. java.sql.Date and java.sql.Time already have valueOf, so they work already. Date and Calendar are tricky because it requires a format. I'm going to close this w/ basic support, then see if we can improve on it either by integrating w/ Seam International, or allowing the use of a format pattern annotation at the injection point.

            People

            • Assignee:
              dan.j.allen Dan Allen
              Reporter:
              dan.j.allen Dan Allen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development