use of org.apache.cloudstack.api.response.CustomCertificateResponse in project cloudstack by apache.
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(ApiErrorCode.INTERNAL_ERROR, "Failed to upload custom certificate");
}
}
Aggregations