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 |
parseRegion(String host,
String serviceHint)
Attempts to parse the region name from an endpoint based on conventions
about the endpoint format.
|
static String |
parseRegionName(String host,
String serviceHint)
Deprecated.
in favor of
parseRegion(String, String) . |
static String |
parseRegionName(URI endpoint)
Deprecated.
in favor of
parseRegionName(String, String) . |
static String |
parseServiceName(URI endpoint)
Deprecated.
|
@Deprecated public static String parseRegionName(URI endpoint)
parseRegionName(String, String)
.@Deprecated public static String parseRegionName(String host, String serviceHint)
parseRegion(String, String)
.host
- the hostname to parseserviceHint
- an optional hint about the service for the endpointpublic static String parseRegion(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 © 2017. All rights reserved.