Package ac.simons.oembed
Interface RequestProvider
-
- All Known Implementing Classes:
DefaultRequestProvider
public interface RequestProviderAn 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.HttpGetcreateRequestFor(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 agentapplicationName- An optional application name, will be added to the userAgent if presenturi- The api url of the oembed endpoint- Returns:
- The http request for the url
url
-
-