001package com.nimbusds.oauth2.sdk.http;
002
003
004import java.io.IOException;
005import java.net.URL;
006
007
008/**
009 * Retriever of resources specified by URL.
010 */
011@Deprecated
012public interface ResourceRetriever {
013
014
015        /**
016         * Retrieves the resource from the specified HTTP(S) URL.
017         *
018         * @param url The URL of the resource. Its scheme must be HTTP or
019         *            HTTPS. Must not be {@code null}.
020         *
021         * @return The retrieved resource.
022         *
023         * @throws IOException If the HTTP connection to the specified URL
024         *                     failed or the resource couldn't be retrieved.
025         */
026        Resource retrieveResource(final URL url)
027                throws IOException;
028}