Interface RequestProvider

  • All Known Implementing Classes:
    DefaultRequestProvider

    public interface RequestProvider
    An oembed provider creates Http requests for embeddable urls.
    Author:
    Michael J. Simons, 2014-12-28
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.apache.http.client.methods.HttpGet createRequestFor​(java.lang.String userAgent, java.lang.String applicationName, java.net.URI uri)
      Creates an executable http request (GET) for the given url.
    • Method Detail

      • createRequestFor

        org.apache.http.client.methods.HttpGet createRequestFor​(java.lang.String userAgent,
                                                                java.lang.String applicationName,
                                                                java.net.URI uri)
        Creates an executable http request (GET) for the given url.
        Parameters:
        userAgent - Our user agent
        applicationName - An optional application name, will be added to the userAgent if present
        uri - The api url of the oembed endpoint
        Returns:
        The http request for the url url