Search in sources :

Example 1 with CustomCertificateResponse

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");
    }
}
Also used : CustomCertificateResponse(com.cloud.api.response.CustomCertificateResponse) ServerApiException(com.cloud.api.ServerApiException)

Aggregations

ServerApiException (com.cloud.api.ServerApiException)1 CustomCertificateResponse (com.cloud.api.response.CustomCertificateResponse)1