public class NoembedProvider extends AbstractOEmbedProvider
httpClient, mapper| Constructor and Description |
|---|
NoembedProvider()
Makes an instance using default HTTP client and Jackson ObjectMapper.
|
NoembedProvider(okhttp3.OkHttpClient httpClient,
com.fasterxml.jackson.databind.ObjectMapper mapper)
Makes an instance using supplied httpClient and mapper.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkEmbedForErrors(OEmbed e)
Some oEmbed providers return errors in response fields instead of using
HTTP response error codes.
|
protected ProviderEndpoint |
getProviderEndpointFor(String url)
Returns ProviderEndpoint to use for given resource url.
|
get, getEmbedClass, prepareRequestURI, resolve, resolvepublic NoembedProvider()
public NoembedProvider(okhttp3.OkHttpClient httpClient,
com.fasterxml.jackson.databind.ObjectMapper mapper)
httpClient - OkHTTP clientmapper - Jackson ObjectMapper instanceprotected void checkEmbedForErrors(OEmbed e) throws IOException
AbstractOEmbedProvidercheckEmbedForErrors in class AbstractOEmbedProvidere - returned instanceIOException - if error is found on oEmbed instanceAbstractOEmbedProvider.checkEmbedForErrors(com.nmote.oembed.OEmbed)protected ProviderEndpoint getProviderEndpointFor(String url)
AbstractOEmbedProvidergetProviderEndpointFor in class AbstractOEmbedProviderurl - resource URLAbstractOEmbedProvider.getProviderEndpointFor(java.lang.String)Copyright © 2017. All rights reserved.