[
https://issues.apache.org/jira/browse/CXF-6494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14631348#comment-14631348
]
Sergey Beryozkin edited comment on CXF-6494 at 7/17/15 1:37 PM:
----------------------------------------------------------------
I think it is not really worth it given that returning JAX-RS Response is a
proper JAX-RS 2.0 way to do it and still do a typed read on the client side by
doing Response.readEntity(SomeClass.class). Generating a method per every
response representation will likely complicate code even further due to the
fact a method may have multiple request reps too.
I'll keep this issue open for a while - have a look and prepare a patch if
you'd like.
was (Author: sergey_beryozkin):
I think it is not really worth it given that returning JAX-RS Response is a
proper JAX-RS 2.0 way to do it and still do a typed read on the client side by
doing Response.readEntity(SomeClass.class). Generating a method per every
response representation will likely complicate code even further due to the
fact a method may have multiple reps too.
I'll keep this issue open for a while - have a look and prepare a patch if
you'd like.
> Please add support for multiple response representations in WadlToJava
> ----------------------------------------------------------------------
>
> Key: CXF-6494
> URL: https://issues.apache.org/jira/browse/CXF-6494
> Project: CXF
> Issue Type: Improvement
> Components: JAX-RS, Tooling
> Affects Versions: 3.1.1
> Environment: CentOS 6.6, Java
> java version "1.7.0_71"
> OpenJDK Runtime Environment (rhel-2.5.3.2.el6_6-x86_64 u71-b14)
> OpenJDK 64-Bit Server VM (build 24.65-b04, mixed mode)
> Reporter: Pat Lynch
> Priority: Minor
>
> The wadltojava tool, with the supportMultipleXmlReps option, does not
> generate multiple GET methods with individual response types when the WADL
> lists multiple representations in the <response> element.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)