Package io.goobi.viewer.servlets.oembed
Class RichOEmbedResponse
java.lang.Object
io.goobi.viewer.servlets.oembed.OEmbedResponse
io.goobi.viewer.servlets.oembed.RichOEmbedResponse
oEmbed response for rich-media resources, carrying an HTML embed snippet.
-
Field Summary
Fields inherited from class io.goobi.viewer.servlets.oembed.OEmbedResponse
authorName, authorUrl, cacheAge, height, providerName, providerUrl, thumbnailHeight, thumbnailUrl, thumbnailWidth, title, type, version, width -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.RichOEmbedResponse(OEmbedRecord rec, Integer maxWidth, Integer maxHeight) Constructor. -
Method Summary
Methods inherited from class io.goobi.viewer.servlets.oembed.OEmbedResponse
getAuthorName, getAuthorUrl, getCacheAge, getHeight, getProviderName, getProviderUrl, getThumbnailHeight, getThumbnailUrl, getThumbnailWidth, getTitle, getType, getVersion, getWidth, setAuthorName, setAuthorUrl, setCacheAge, setHeight, setProviderName, setProviderUrl, setThumbnailHeight, setThumbnailUrl, setThumbnailWidth, setTitle, setType, setVersion, setWidth
-
Constructor Details
-
RichOEmbedResponse
Constructor.- Parameters:
rec- oEmbed record to embed- Throws:
ViewerConfigurationException- if any.
-
RichOEmbedResponse
public RichOEmbedResponse(OEmbedRecord rec, Integer maxWidth, Integer maxHeight) throws ViewerConfigurationException Constructor.- Parameters:
rec- oEmbed record to embedmaxWidth- maximum allowed embed width in pixelsmaxHeight- maximum allowed embed height in pixels- Throws:
ViewerConfigurationException- if any.
-
-
Method Details
-
getHtml
Getter for the fieldhtml.- Returns:
- the HTML snippet to embed for a rich oEmbed response
-
setHtml
Setter for the fieldhtml.- Parameters:
html- the HTML snippet to embed for a rich oEmbed response
-