Class PolarisCliResponseUtility
- java.lang.Object
-
- com.synopsys.integration.polaris.common.cli.PolarisCliResponseUtility
-
public class PolarisCliResponseUtility extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PolarisCliResponseUtility(com.synopsys.integration.log.IntLogger logger, com.google.gson.Gson gson, CliCommonResponseAdapter cliCommonResponseAdapter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolarisCliResponseUtility
defaultUtility(com.synopsys.integration.log.IntLogger logger)
static java.nio.file.Path
getDefaultPathToJson(java.lang.String projectRootDirectory)
com.google.gson.Gson
getGson()
CliCommonResponseModel
getPolarisCliResponseModel(java.lang.String pathToJson)
CliCommonResponseModel
getPolarisCliResponseModel(java.nio.file.Path pathToJson)
CliCommonResponseModel
getPolarisCliResponseModelFromDefaultLocation(java.lang.String projectRootDirectory)
CliCommonResponseModel
getPolarisCliResponseModelFromJsonObject(com.google.gson.JsonObject versionlessModel)
CliCommonResponseModel
getPolarisCliResponseModelFromString(java.lang.String rawPolarisCliResponse)
-
-
-
Constructor Detail
-
PolarisCliResponseUtility
public PolarisCliResponseUtility(com.synopsys.integration.log.IntLogger logger, com.google.gson.Gson gson, CliCommonResponseAdapter cliCommonResponseAdapter)
-
-
Method Detail
-
defaultUtility
public static PolarisCliResponseUtility defaultUtility(com.synopsys.integration.log.IntLogger logger)
-
getDefaultPathToJson
public static java.nio.file.Path getDefaultPathToJson(java.lang.String projectRootDirectory)
-
getGson
public com.google.gson.Gson getGson()
-
getPolarisCliResponseModelFromDefaultLocation
public CliCommonResponseModel getPolarisCliResponseModelFromDefaultLocation(java.lang.String projectRootDirectory) throws PolarisIntegrationException
- Throws:
PolarisIntegrationException
-
getPolarisCliResponseModel
public CliCommonResponseModel getPolarisCliResponseModel(java.lang.String pathToJson) throws PolarisIntegrationException
- Throws:
PolarisIntegrationException
-
getPolarisCliResponseModel
public CliCommonResponseModel getPolarisCliResponseModel(java.nio.file.Path pathToJson) throws PolarisIntegrationException
- Throws:
PolarisIntegrationException
-
getPolarisCliResponseModelFromString
public CliCommonResponseModel getPolarisCliResponseModelFromString(java.lang.String rawPolarisCliResponse) throws com.synopsys.integration.exception.IntegrationException
- Throws:
com.synopsys.integration.exception.IntegrationException
-
getPolarisCliResponseModelFromJsonObject
public CliCommonResponseModel getPolarisCliResponseModelFromJsonObject(com.google.gson.JsonObject versionlessModel) throws com.synopsys.integration.exception.IntegrationException
- Throws:
com.synopsys.integration.exception.IntegrationException
-
-