Package software.amazon.awssdk.utils.uri
Class SdkUri
- java.lang.Object
-
- software.amazon.awssdk.utils.uri.SdkUri
-
public final class SdkUri extends Object
Global cache for account-id based URI. Prevent calling new URI constructor for the same string, which can cause performance issues with some uri pattern. Do not directly depend on this class, it will be removed in the future.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
create(String s)
static SdkUri
getInstance()
URI
newUri(String s)
URI
newUri(String scheme, String userInfo, String host, int port, String path, String query, String fragment)
URI
newUri(String scheme, String authority, String path, String query, String fragment)
-
-
-
Method Detail
-
getInstance
public static SdkUri getInstance()
-
newUri
public URI newUri(String s) throws URISyntaxException
- Throws:
URISyntaxException
-
newUri
public URI newUri(String scheme, String userInfo, String host, int port, String path, String query, String fragment) throws URISyntaxException
- Throws:
URISyntaxException
-
newUri
public URI newUri(String scheme, String authority, String path, String query, String fragment) throws URISyntaxException
- Throws:
URISyntaxException
-
-