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
- All
- Comments
- Work Log
- History
- Activity
- Links Hierarchy
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.