Package com.nimbusds.jose.util
Interface ResourceRetriever
-
- All Known Subinterfaces:
RestrictedResourceRetriever
- All Known Implementing Classes:
AbstractRestrictedResourceRetriever,DefaultResourceRetriever
public interface ResourceRetrieverRetriever of resources specified by URL.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ResourceretrieveResource(java.net.URL url)Retrieves the resource from the specified HTTP(S) URL.
-
-
-
Method Detail
-
retrieveResource
Resource retrieveResource(java.net.URL url) throws java.io.IOException
Retrieves the resource from the specified HTTP(S) URL.- Parameters:
url- The URL of the resource. Its scheme must be HTTP or HTTPS. Must not benull.- Returns:
- The retrieved resource.
- Throws:
java.io.IOException- If the HTTP connection to the specified URL failed or the resource couldn't be retrieved.
-
-