Example usage for com.amazonaws.services.ec2 AmazonEC2Client setServiceNameIntern

List of usage examples for com.amazonaws.services.ec2 AmazonEC2Client setServiceNameIntern

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2 AmazonEC2Client setServiceNameIntern.

Prototype

public final void setServiceNameIntern(String serviceName) 

Source Link

Document

An internal method used to explicitly override the service name computed by the default implementation.

Usage

From source file:web.component.impl.aws.AWSEC2Impl.java

private void setUpHttpClient(AmazonEC2Client awsEC2Client) {

    Properties conf = ((AWSImpl) AWS.access()).conf();
    String endpoint = conf.getProperty("ec2.endpoint");
    String serviceName = conf.getProperty("ec2.servicename");
    String regionName = conf.getProperty("region");

    awsEC2Client.setEndpoint(endpoint, serviceName, regionName);
    awsEC2Client.setServiceNameIntern(serviceName);
}