How to print the XML response generated from jersey? I need to log the response for info. Is this possible? My service class looks like this:
@Path("/name")
public class AuditoriumService {
@GET
@Produces(MediaType.APPLICATION_XML)
public List<String> getNames() throws UnrecoverableException {
List<String> nameList = getNameList();
log.info("Response: Status Code: "+200);
return nameList;
}
}