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