I'm trying to build Response according to the output type specified in cxfrs:server service class.
@Consumes({MediaType.APPLICATION_JSON})
@Produces({"application/xml"})
How can I get the Consumes type and Produces type using cxf interceptor.
I'm trying to build Response according to the output type specified in cxfrs:server service class.
@Consumes({MediaType.APPLICATION_JSON})
@Produces({"application/xml"})
How can I get the Consumes type and Produces type using cxf interceptor.
You can get this information from OperationResourceInfo The interceptor should looks like this
Remember to add a
in
orout
interceptor to your endpoint