Class PolarisJsonTransformer


  • public class PolarisJsonTransformer
    extends Object
    • Constructor Detail

      • PolarisJsonTransformer

        public PolarisJsonTransformer​(com.google.gson.Gson gson,
                                      com.blackduck.integration.log.IntLogger logger)
    • Method Detail

      • getResponse

        public <C extends PolarisResponse> C getResponse​(com.blackduck.integration.rest.response.Response response,
                                                         Type responseType)
                                                  throws com.blackduck.integration.exception.IntegrationException
        Throws:
        com.blackduck.integration.exception.IntegrationException
      • getResponseAs

        public <C extends PolarisResponse> C getResponseAs​(String json,
                                                           Type responseType)
                                                    throws com.blackduck.integration.exception.IntegrationException
        Throws:
        com.blackduck.integration.exception.IntegrationException
      • getResponseAs

        public <C extends PolarisResponse> C getResponseAs​(com.google.gson.JsonObject jsonObject,
                                                           Type responseType)
                                                    throws com.blackduck.integration.exception.IntegrationException
        Throws:
        com.blackduck.integration.exception.IntegrationException