I'm a bit new to JAX-RS.
I have the following code:
Client client = ClientBuilder.newClient();
WebTarget resource = client.target("/foo/bar/" + id);
final String xml = resource.request(MediaType.APPLICATION_XML).get(String.class);
This is a stupid question, but how exactly could I get the response and it's status code from here?
The output is a String
...