Interface ResourceRetriever

All Known Subinterfaces:
RestrictedResourceRetriever
All Known Implementing Classes:
AbstractRestrictedResourceRetriever, DefaultResourceRetriever

public interface ResourceRetriever
Retriever of resources specified by URL.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves the resource from the specified HTTP(S) URL.
  • Method Details

    • retrieveResource

      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 be null.
      Returns:
      The retrieved resource.
      Throws:
      IOException - If the HTTP connection to the specified URL failed or the resource couldn't be retrieved.