public class AwsHostNameUtils extends Object
Constructor and Description |
---|
AwsHostNameUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
localHostName()
Returns the host name for the local host.
|
static String |
parseRegionName(String host,
String serviceHint)
Attempts to parse the region name from an endpoint based on conventions
about the endpoint format.
|
static String |
parseRegionName(URI endpoint)
Deprecated.
in favor of
parseRegionName(String, String) . |
static String |
parseServiceName(URI endpoint)
Deprecated.
because it's no longer needed by the SDK, and therefore not
maintained.
|
@Deprecated public static String parseRegionName(URI endpoint)
parseRegionName(String, String)
.public static String parseRegionName(String host, String serviceHint)
host
- the hostname to parseserviceHint
- an optional hint about the service for the endpoint@Deprecated public static String parseServiceName(URI endpoint)
public static String localHostName()
Copyright © 2015. All rights reserved.