[ 
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)

Reply via email to