Class PolarisJsonTransformer

java.lang.Object
com.blackduck.integration.polaris.common.service.PolarisJsonTransformer

public class PolarisJsonTransformer extends Object
  • Constructor Details

    • PolarisJsonTransformer

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

    • 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