Class ClientUtils


  • public final class ClientUtils
    extends Object
    Author:
    Geoffroy Jamgotchian
    • Method Detail

      • createClient

        public static javax.ws.rs.client.Client createClient()
      • checkOk

        public static void checkOk​(javax.ws.rs.core.Response response)
      • readEntityIfOk

        public static <T> T readEntityIfOk​(javax.ws.rs.core.Response response,
                                           Class<T> entityType)
      • readEntityIfOk

        public static <T> T readEntityIfOk​(javax.ws.rs.core.Response response,
                                           javax.ws.rs.core.GenericType<T> entityType)
      • readOptionalEntityIfOk

        public static <T> Optional<T> readOptionalEntityIfOk​(javax.ws.rs.core.Response response,
                                                             Class<T> entityType)