public class BasicOEmbed extends Object implements OEmbed, Serializable, Favicon, Pingback, Webmention
OEmbed.Type| Constructor and Description |
|---|
BasicOEmbed() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthorName()
The name of the author/owner of the resource.
|
String |
getAuthorUrl()
A URL for the author/owner of the resource.
|
Long |
getCacheAge()
The suggested cache lifetime for this resource, in seconds.
|
String |
getDescription()
Description
|
String |
getFaviconUrl()
Favicon URL
|
Integer |
getHeight()
The height in pixels of the image specified in the url parameter.
|
String |
getHtml()
The HTML required to embed a video player.
|
String |
getPingbackUrl()
Pingback URL.
|
String |
getProviderName()
The name of the resource provider.
|
String |
getProviderUrl()
The url of the resource provider.
|
Integer |
getThumbnailHeight()
The height of the optional thumbnail.
|
String |
getThumbnailUrl()
A URL to a thumbnail image representing the resource.
|
Integer |
getThumbnailWidth()
The width of the optional thumbnail.
|
String |
getTitle()
A text title describing the resource.
|
String |
getType()
The resource type.
|
String |
getUrl()
The source URL of the image.
|
String |
getVersion()
The oEmbed version number.
|
String |
getWebmentionUrl()
The webmention URL.
|
Integer |
getWidth()
The width in pixels of the image specified in the url parameter.
|
boolean |
hasDescription()
Returns true if oEmbed has description.
|
boolean |
hasHtml()
Returns true if oEmbed has html.
|
boolean |
hasThumbnail()
Returns true if oEmbed has thumbnail.
|
boolean |
hasTitle()
Returns true if oEmbed has title.
|
void |
setAuthorName(String authorName)
Set author name
|
void |
setAuthorUrl(String authorUrl)
Set author URL
|
void |
setCacheAge(Long cacheAge)
Set cache age.
|
void |
setDescription(String description)
Set description.
|
void |
setFaviconUrl(String faviconUrl)
Set favicon URL.
|
void |
setHeight(Integer height)
Set height in pixels.
|
void |
setHtml(String html)
Set HTML content.
|
void |
setPingbackUrl(String pingbackUrl)
Set pingback URL.
|
void |
setProviderName(String providerName)
Set oEmbed provider name.
|
void |
setProviderUrl(String providerUrl)
Set oEmbed provider URL
|
void |
setThumbnailHeight(Integer thumbnailHeight)
Set thumbnail height in pixels.
|
void |
setThumbnailUrl(String thumbnailUrl)
Set thumbnail URL.
|
void |
setThumbnailWidth(Integer thumbnailWidth)
Set thumbnail width in pixels
|
void |
setTitle(String title)
Set title
|
void |
setType(String type)
Set oEmbed type.
|
void |
setUrl(String url)
Set content URL.
|
void |
setVersion(String version)
Set oEmbed version.
|
void |
setWebmentionUrl(String webmentionUrl)
Set webmention URL.
|
void |
setWidth(Integer width)
Set width in pixels.
|
String |
toString() |
public String getAuthorName()
OEmbedgetAuthorName in interface OEmbedpublic String getAuthorUrl()
OEmbedgetAuthorUrl in interface OEmbedpublic Long getCacheAge()
OEmbedgetCacheAge in interface OEmbedpublic String getDescription()
OEmbedgetDescription in interface OEmbedpublic String getFaviconUrl()
FavicongetFaviconUrl in interface Faviconpublic Integer getHeight()
OEmbedpublic String getHtml()
OEmbedpublic String getPingbackUrl()
PingbackgetPingbackUrl in interface Pingbackpublic String getProviderName()
OEmbedgetProviderName in interface OEmbedpublic String getProviderUrl()
OEmbedgetProviderUrl in interface OEmbedpublic Integer getThumbnailHeight()
OEmbedgetThumbnailHeight in interface OEmbedpublic String getThumbnailUrl()
OEmbedgetThumbnailUrl in interface OEmbedpublic Integer getThumbnailWidth()
OEmbedgetThumbnailWidth in interface OEmbedpublic String getTitle()
OEmbedpublic String getType()
OEmbedpublic String getUrl()
OEmbedpublic String getVersion()
OEmbedgetVersion in interface OEmbedpublic String getWebmentionUrl()
WebmentiongetWebmentionUrl in interface Webmentionpublic Integer getWidth()
OEmbedpublic boolean hasDescription()
OEmbedhasDescription in interface OEmbedpublic boolean hasHtml()
OEmbedpublic boolean hasThumbnail()
OEmbedhasThumbnail in interface OEmbedpublic boolean hasTitle()
OEmbedpublic void setAuthorName(String authorName)
authorName - author namepublic void setAuthorUrl(String authorUrl)
authorUrl - author URLpublic void setCacheAge(Long cacheAge)
cacheAge - cache age in secondspublic void setDescription(String description)
description - descriptionpublic void setFaviconUrl(String faviconUrl)
faviconUrl - urlpublic void setHeight(Integer height)
height - height in pxpublic void setHtml(String html)
html - HTML contentpublic void setPingbackUrl(String pingbackUrl)
pingbackUrl - urlpublic void setProviderName(String providerName)
providerName - provider namepublic void setProviderUrl(String providerUrl)
providerUrl - urlpublic void setThumbnailHeight(Integer thumbnailHeight)
thumbnailHeight - height in pxpublic void setThumbnailUrl(String thumbnailUrl)
thumbnailUrl - urlpublic void setThumbnailWidth(Integer thumbnailWidth)
thumbnailWidth - width in px.public void setTitle(String title)
title - titlepublic void setType(String type)
type - typepublic void setUrl(String url)
url - urlpublic void setVersion(String version)
version - oEmbed versionpublic void setWebmentionUrl(String webmentionUrl)
webmentionUrl - callback urlpublic void setWidth(Integer width)
width - width in px.public String toString()
toString in class ObjectObject.toString()Copyright © 2017. All rights reserved.