/** * Loads a set of region metadata by downloading an XML file from the * given URI and parsing it. * * @param uri the uri of the XML file to parse * @return the parsed region metadata * @throws IOException on error fetching or parsing the XML file */ @Deprecated public static RegionMetadata loadMetadataFromURI(final URI uri) throws IOException { return loadMetadataFromURI(uri, null); }
/** * Loads a set of region metadata by downloading an XML file from the * given URI and parsing it. * * @param uri the uri of the XML file to parse * @param config configuration for the HTTP client to use to fetch the file * @throws SdkClientException on error */ @Deprecated public static synchronized void initializeFromURI( final URI uri, final ClientConfiguration config) { try { regionMetadata = loadMetadataFromURI(uri, config); } catch (IOException exception) { throw new SdkClientException( "Error parsing region metadata from " + uri, exception); } }
/** * Loads a set of region metadata by downloading an XML file from the * given URI and parsing it. * * @param uri the uri of the XML file to parse * @return the parsed region metadata * @throws IOException on error fetching or parsing the XML file */ @Deprecated public static RegionMetadata loadMetadataFromURI(final URI uri) throws IOException { return loadMetadataFromURI(uri, null); }
/** * Loads a set of region metadata by downloading an XML file from the * given URI and parsing it. * * @param uri the uri of the XML file to parse * @param config configuration for the HTTP client to use to fetch the file * @throws SdkClientException on error */ @Deprecated public static synchronized void initializeFromURI( final URI uri, final ClientConfiguration config) { try { regionMetadata = loadMetadataFromURI(uri, config); } catch (IOException exception) { throw new SdkClientException( "Error parsing region metadata from " + uri, exception); } }
/** * Loads a set of region metadata by downloading an XML file from the * given URI and parsing it. * * @param uri the uri of the XML file to parse * @return the parsed region metadata * @throws IOException on error fetching or parsing the XML file */ @Deprecated public static RegionMetadata loadMetadataFromURI(final URI uri) throws IOException { return loadMetadataFromURI(uri, null); }
/** * Loads a set of region metadata by downloading an XML file from the * given URI and parsing it. * * @param uri the uri of the XML file to parse * @param config configuration for the HTTP client to use to fetch the file * @throws SdkClientException on error */ @Deprecated public static synchronized void initializeFromURI( final URI uri, final ClientConfiguration config) { try { regionMetadata = loadMetadataFromURI(uri, config); } catch (IOException exception) { throw new SdkClientException( "Error parsing region metadata from " + uri, exception); } }