Class ProblemSupport
java.lang.Object
io.github.belgif.rest.problem.ee.jaxrs.client.ProblemSupport
Utility class for enabling problem support on JAX-RS Clients.
-
Method Summary
Modifier and TypeMethodDescriptionstatic javax.ws.rs.client.Clientenable(javax.ws.rs.client.Client client) Enable problem support on the given JAX-RS Client.
-
Method Details
-
enable
public static javax.ws.rs.client.Client enable(javax.ws.rs.client.Client client) Enable problem support on the given JAX-RS Client.This causes the JAX-RS Client to throw Problem exceptions instead of ProblemWrapper exceptions.
- Parameters:
client- the JAX-RS Client- Returns:
- the problem-enabled JAX-RS Client
-