Search in sources :

Example 1 with CompressionUtil

use of com.cloud.utils.compression.CompressionUtil in project cloudstack by apache.

the class DeployAsIsHelperImpl method getValueFromInformationTO.

private String getValueFromInformationTO(TemplateDeployAsIsInformationTO informationTO) throws IOException {
    if (informationTO instanceof OVFEulaSectionTO) {
        CompressionUtil compressionUtil = new CompressionUtil();
        byte[] compressedLicense = ((OVFEulaSectionTO) informationTO).getCompressedLicense();
        return compressionUtil.decompressByteArary(compressedLicense);
    }
    return gson.toJson(informationTO);
}
Also used : OVFEulaSectionTO(com.cloud.agent.api.to.deployasis.OVFEulaSectionTO) CompressionUtil(com.cloud.utils.compression.CompressionUtil)

Aggregations

OVFEulaSectionTO (com.cloud.agent.api.to.deployasis.OVFEulaSectionTO)1 CompressionUtil (com.cloud.utils.compression.CompressionUtil)1