Class ProblemSupport

java.lang.Object
io.github.belgif.rest.problem.ee.jaxrs.client.ProblemSupport

public class ProblemSupport extends Object
Utility class for enabling problem support on JAX-RS Clients.
  • Method Summary

    Modifier and Type
    Method
    Description
    static javax.ws.rs.client.Client
    enable(javax.ws.rs.client.Client client)
    Enable problem support on the given JAX-RS Client.
    static <T> T
    enable(T client)
    Enable problem support on the given client (e.g.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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