cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andriy Redko (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-5309) Support Bean Validation API for JAX-RS
Date Mon, 21 Oct 2013 22:23:45 GMT

    [ https://issues.apache.org/jira/browse/CXF-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13801255#comment-13801255
] 

Andriy Redko commented on CXF-5309:
-----------------------------------

Hi Sergey,

Thanks a lot! I will continue experimenting with caching the metadata. With respect to PhaseInterceptorChain.getCurrentMessage().getExchange().getOutMessage(),
I think it's a great idea. It might be a bit unclear for developers to figure out this trick
if someone decides to provide own exception wrapper. I think it could be a case as spec's
Chapter 7 outlines HTTP error codes but not content (which could be application-specific -
text / JSON / XML / ... ). Anyway, I would prefer to go with PhaseInterceptorChain.getCurrentMessage().getExchange().getOutMessage(),
it's more lightweight then exceptions hierarchy. 

Thank you.
Andriy.

> Support Bean Validation API for JAX-RS
> --------------------------------------
>
>                 Key: CXF-5309
>                 URL: https://issues.apache.org/jira/browse/CXF-5309
>             Project: CXF
>          Issue Type: Sub-task
>          Components: JAX-RS, JAX-WS Runtime
>            Reporter: Sergey Beryozkin
>         Attachments: patch-validation-poc.txt
>
>




--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message