[
https://issues.apache.org/jira/browse/WW-4835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16112324#comment-16112324
]
ASF GitHub Bot commented on WW-4835:
------------------------------------
Github user lukaszlenart commented on the issue:
https://github.com/apache/struts/pull/158
With the `ActionInvocation` in place I can access an action which means the
action can provide additional informations how to serialise/deserialize
object/string via dedicated interfaces, e.g.
```java
public interface DateFormatHandler {
Date toDate(String dateStr);
String fromDate(Date date);
}
```
and when action will implement such interface, a handler can pass
formatting a date to the action instead of doing this by itself. And many more
:)
> Make REST ContentHandlers configurable
> --------------------------------------
>
> Key: WW-4835
> URL: https://issues.apache.org/jira/browse/WW-4835
> Project: Struts 2
> Issue Type: Improvement
> Components: Plugin - REST
> Affects Versions: 2.5.12
> Reporter: Lukasz Lenart
> Priority: Minor
> Fix For: 2.5.13
>
>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)