Package com.cloud.api.response

Examples of com.cloud.api.response.Site2SiteVpnGatewayResponse


        if (gws != null && !gws.isEmpty()) {
           for (Site2SiteVpnGateway gw : gws) {
                 if (gw == null) {
                     continue;
                 }
               Site2SiteVpnGatewayResponse site2SiteVpnGatewayRes = _responseGenerator.createSite2SiteVpnGatewayResponse(gw);
               site2SiteVpnGatewayRes.setObjectName("vpngateway");
                 gwResponses.add(site2SiteVpnGatewayRes);
             }
        }
        response.setResponses(gwResponses);
        response.setResponseName(getCommandName());
View Full Code Here


    @Override
    public void execute(){
        Site2SiteVpnGateway result;
        result = _s2sVpnService.createVpnGateway(this);
        if (result != null) {
            Site2SiteVpnGatewayResponse response = _responseGenerator.createSite2SiteVpnGatewayResponse(result);
            response.setResponseName(getCommandName());
            this.setResponseObject(response);
        } else {
            throw new ServerApiException(BaseCmd.INTERNAL_ERROR, "Failed to create VPN gateway");
        }
    }
View Full Code Here

        return response;
    }
   
    @Override
    public Site2SiteVpnGatewayResponse createSite2SiteVpnGatewayResponse(Site2SiteVpnGateway result) {
      Site2SiteVpnGatewayResponse response = new Site2SiteVpnGatewayResponse();
        response.setId(result.getId());
        response.setIp(ApiDBUtils.findIpAddressById(result.getAddrId()).getAddress().toString());
        response.setVpcId(result.getVpcId());
        response.setRemoved(result.getRemoved());
        response.setObjectName("vpngateway");
       
        populateAccount(response, result.getAccountId());
        populateDomain(response, result.getDomainId());
        return response;
    }
View Full Code Here

TOP

Related Classes of com.cloud.api.response.Site2SiteVpnGatewayResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.