public final class InstanceMetadataServiceResourceFetcher extends EC2ResourceFetcher
Modifier and Type | Method and Description |
---|---|
static InstanceMetadataServiceResourceFetcher |
getInstance() |
String |
readResource(URI endpoint,
CredentialsEndpointRetryPolicy retryPolicy,
Map<String,String> headers)
Connects to the given endpoint to read the resource
and returns the text contents.
|
defaultResourceFetcher, readResource, readResource
public static InstanceMetadataServiceResourceFetcher getInstance()
public String readResource(URI endpoint, CredentialsEndpointRetryPolicy retryPolicy, Map<String,String> headers)
readResource
in class EC2ResourceFetcher