public class ProviderEndpoint extends Object
| Constructor and Description |
|---|
ProviderEndpoint(String url)
Constructs new ProviderEndpoint.
|
ProviderEndpoint(String url,
Class<? extends BasicOEmbed> embedClass)
Constructs new ProviderEndpoint.
|
ProviderEndpoint(String url,
Class<? extends BasicOEmbed> embedClass,
Set<String> schemes)
Constructs new ProviderEndpoint.
|
ProviderEndpoint(String url,
Class<? extends BasicOEmbed> embedClass,
String... schemes)
Constructs new ProviderEndpoint.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEmbedClass()
Get embedClass class name.
|
Set<String> |
getFormats()
Supported formats i.e.
|
Set<String> |
getSchemes()
URL schemes.
|
String |
getUrl()
Provider endpoint URL.
|
boolean |
isDiscovery()
Checks if endpoint supports auto discovery.
|
void |
setDiscovery(boolean discovery)
Set auto discovery.
|
void |
setEmbedClass(String className)
Set oEmbed subclass to use for mapping.
|
void |
setFormats(Set<String> formats)
Sets supported formats.
|
void |
setSchemes(Set<String> schemes)
Sets supported URL schemes.
|
void |
setUrl(String endpointUrl)
Sets endpoint URL.
|
String |
toString() |
public ProviderEndpoint(String url)
url - provider endpoint URLpublic ProviderEndpoint(String url, Class<? extends BasicOEmbed> embedClass)
url - provider endpoint URLembedClass - OEmbed subclass to use or nullpublic ProviderEndpoint(String url, Class<? extends BasicOEmbed> embedClass, Set<String> schemes)
url - provider endpoint URLembedClass - OEmbed subclass to use or nullschemes - list of URL schemespublic ProviderEndpoint(String url, Class<? extends BasicOEmbed> embedClass, String... schemes)
url - provider endpoint URLembedClass - OEmbed subclass to use or nullschemes - list of URL schemespublic String getEmbedClass()
public Set<String> getFormats()
public String getUrl()
public boolean isDiscovery()
public void setDiscovery(boolean discovery)
discovery - discoverypublic void setEmbedClass(String className) throws ClassNotFoundException
className - OEmbed subclass to use or nullClassNotFoundException - if className can't be loadedpublic void setFormats(Set<String> formats)
formats - set of formatspublic void setSchemes(Set<String> schemes)
schemes - URL schemespublic void setUrl(String endpointUrl)
endpointUrl - urlpublic String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.