public class DefaultRequestProvider extends Object implements RequestProvider
| Modifier and Type | Field and Description |
|---|---|
static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
DefaultRequestProvider() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.http.client.methods.HttpGet |
createRequestFor(String userAgent,
Optional<String> applicationName,
URI uri)
Creates an executable http request (GET) for the given url.
|
public org.apache.http.client.methods.HttpGet createRequestFor(String userAgent, Optional<String> applicationName, URI uri)
RequestProvidercreateRequestFor in interface RequestProvideruserAgent - Our user agentapplicationName - An optional application name, will be added to the
userAgent if presenturi - The api url of the oembed endpointurlCopyright © 2010–2016 michael-simons.eu. All rights reserved.