use of com.cloud.api.response.CustomCertificateResponse in project CloudStack-archive by CloudStack-extras.
the class UploadCustomCertificateCmd method execute.
@Override
public void execute() {
String result = _mgr.uploadCertificate(this);
if (result != null) {
CustomCertificateResponse response = new CustomCertificateResponse();
response.setResponseName(getCommandName());
response.setResultMessage(result);
response.setObjectName("customcertificate");
this.setResponseObject(response);
} else {
throw new ServerApiException(BaseCmd.INTERNAL_ERROR, "Failed to upload custom certificate");
}
}
Aggregations