Interface IAdvancedResourceRetriever

All Superinterfaces:
IResourceRetriever
All Known Implementing Classes:
DefaultResourceRetriever

public interface IAdvancedResourceRetriever extends IResourceRetriever
Extended interface for classes that can retrieve data from resources by URL. An extra method with http headers and request data is added.
  • Method Details

    • get

      InputStream get (URL url, byte[] request, Map<String,String> headers) throws IOException
      Gets the InputStream with the data from a provided URL by instantiating an HTTP connection to the URL.
      Parameters:
      url - the source URL
      request - data to send to the URL
      headers - HTTP headers to set for the outgoing connection
      Returns:
      the input stream with the retrieved data
      Throws:
      IOException - if any input/output issue occurs