Package io.goobi.viewer.servlets.oembed
Class OEmbedResponse
java.lang.Object
io.goobi.viewer.servlets.oembed.OEmbedResponse
- Direct Known Subclasses:
PhotoOEmbedResponse,RichOEmbedResponse
Base class for oEmbed response objects, containing the common fields defined by the oEmbed specification.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldauthorName.Getter for the fieldauthorUrl.Getter for the fieldcacheAge.Getter for the fieldheight.Getter for the fieldproviderName.Getter for the fieldproviderUrl.Getter for the fieldthumbnailHeight.Getter for the fieldthumbnailUrl.Getter for the fieldthumbnailWidth.getTitle()Getter for the fieldtitle.getType()Getter for the fieldtype.Getter for the fieldversion.getWidth()Getter for the fieldwidth.voidsetAuthorName(String authorName) Setter for the fieldauthorName.voidsetAuthorUrl(String authorUrl) Setter for the fieldauthorUrl.voidsetCacheAge(Integer cacheAge) Setter for the fieldcacheAge.voidSetter for the fieldheight.voidsetProviderName(String providerName) Setter for the fieldproviderName.voidsetProviderUrl(String providerUrl) Setter for the fieldproviderUrl.voidsetThumbnailHeight(Integer thumbnailHeight) Setter for the fieldthumbnailHeight.voidsetThumbnailUrl(String thumbnailUrl) Setter for the fieldthumbnailUrl.voidsetThumbnailWidth(Integer thumbnailWidth) Setter for the fieldthumbnailWidth.voidSetter for the fieldtitle.voidSetter for the fieldtype.voidsetVersion(String version) Setter for the fieldversion.voidSetter for the fieldwidth.
-
Field Details
-
version
-
type
-
width
-
height
-
title
-
authorName
-
authorUrl
-
providerName
-
providerUrl
-
cacheAge
-
thumbnailUrl
-
thumbnailWidth
-
thumbnailHeight
-
-
Constructor Details
-
OEmbedResponse
public OEmbedResponse()
-
-
Method Details
-
getVersion
Getter for the fieldversion.- Returns:
- the oEmbed spec version string (e.g. "1.0")
-
setVersion
Setter for the fieldversion.- Parameters:
version- the oEmbed spec version string (e.g. "1.0")
-
getType
Getter for the fieldtype.- Returns:
- the oEmbed response type (e.g. "photo", "rich", "video", "link")
-
setType
Setter for the fieldtype.- Parameters:
type- the oEmbed response type (e.g. "photo", "rich", "video", "link")
-
getWidth
Getter for the fieldwidth.- Returns:
- the width in pixels of the embedded content
-
setWidth
Setter for the fieldwidth.- Parameters:
width- the width in pixels of the embedded content
-
getHeight
Getter for the fieldheight.- Returns:
- the height in pixels of the embedded content
-
setHeight
Setter for the fieldheight.- Parameters:
height- the height in pixels of the embedded content
-
getTitle
Getter for the fieldtitle.- Returns:
- the title of the embedded resource
-
setTitle
Setter for the fieldtitle.- Parameters:
title- the title of the embedded resource
-
getAuthorName
Getter for the fieldauthorName.- Returns:
- the name of the author or creator of the embedded resource
-
setAuthorName
Setter for the fieldauthorName.- Parameters:
authorName- the name of the author or creator of the embedded resource
-
getAuthorUrl
Getter for the fieldauthorUrl.- Returns:
- the URL of the author's profile or homepage
-
setAuthorUrl
Setter for the fieldauthorUrl.- Parameters:
authorUrl- the URL of the author's profile or homepage
-
getProviderName
Getter for the fieldproviderName.- Returns:
- the name of the oEmbed content provider
-
setProviderName
Setter for the fieldproviderName.- Parameters:
providerName- the name of the oEmbed content provider
-
getProviderUrl
Getter for the fieldproviderUrl.- Returns:
- the homepage URL of the oEmbed content provider
-
setProviderUrl
Setter for the fieldproviderUrl.- Parameters:
providerUrl- the homepage URL of the oEmbed content provider
-
getCacheAge
Getter for the fieldcacheAge.- Returns:
- the suggested cache lifetime of this response in seconds
-
setCacheAge
Setter for the fieldcacheAge.- Parameters:
cacheAge- the suggested cache lifetime of this response in seconds
-
getThumbnailUrl
Getter for the fieldthumbnailUrl.- Returns:
- the URL of the thumbnail image for the embedded resource
-
setThumbnailUrl
Setter for the fieldthumbnailUrl.- Parameters:
thumbnailUrl- the URL of the thumbnail image for the embedded resource
-
getThumbnailWidth
Getter for the fieldthumbnailWidth.- Returns:
- the width in pixels of the thumbnail image
-
setThumbnailWidth
Setter for the fieldthumbnailWidth.- Parameters:
thumbnailWidth- the width in pixels of the thumbnail image
-
getThumbnailHeight
Getter for the fieldthumbnailHeight.- Returns:
- the height in pixels of the thumbnail image
-
setThumbnailHeight
Setter for the fieldthumbnailHeight.- Parameters:
thumbnailHeight- the height in pixels of the thumbnail image
-