cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael PrieƟ <mailingliste...@googlemail.com>
Subject Different return types
Date Wed, 01 Aug 2012 07:56:27 GMT
Hi,

have anyone a example how I can use different return types in JAX-RS?

Pseudocode:

@GET
public ? getMessage() {

if(IsBinary) {
 return binary;
}

return xml;
}

Cheers,

Michael

Mime
View raw message