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
-
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
-
enable
public static <T> T enable(T client) Enable problem support on the given client (e.g. RESTEasy proxy client).This causes the client to throw Problem exceptions instead of ProblemWrapper exceptions.
- Type Parameters:
T
- the client type- Parameters:
client
- the client- Returns:
- the problem-enabled client
-