Package io.goobi.viewer.servlets.oembed
Class OEmbedRecord
java.lang.Object
io.goobi.viewer.servlets.oembed.OEmbedRecord
Represents a record available for oEmbed discovery, carrying the endpoint URL and format.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for OEmbedRecord.OEmbedRecord(String uri) Constructor for OEmbedRecord. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldphysicalElement.Getter for the fieldstructElement.getUri()Getter for the fielduri.booleanisRichResponse.voidsetPhysicalElement(PhysicalElement physicalElement) Setter for the fieldphysicalElement.voidsetStructElement(StructElement structElement) Setter for the fieldstructElement.voidSetter for the fielduri.
-
Constructor Details
-
OEmbedRecord
Constructor for OEmbedRecord.
- Parameters:
uri- URL string to parse into a URI- Throws:
URISyntaxException
-
OEmbedRecord
public OEmbedRecord()Constructor for OEmbedRecord.
-
-
Method Details
-
getStructElement
Getter for the fieldstructElement.- Returns:
- the top-level structure element of the record to embed
-
setStructElement
Setter for the fieldstructElement.- Parameters:
structElement- the top-level structure element of the record to embed
-
getPhysicalElement
Getter for the fieldphysicalElement.- Returns:
- the physical page element used for the oEmbed response
-
setPhysicalElement
Setter for the fieldphysicalElement.- Parameters:
physicalElement- the physical page element to use for the oEmbed response
-
isRichResponse
public boolean isRichResponse()isRichResponse.
- Returns:
- true if this record has a URI set and thus constitutes a rich oEmbed response, false otherwise
-
getUri
Getter for the field
uri.- Returns:
- the URI of the resource to embed
-
setUri
Setter for the field
uri.- Parameters:
uri- the URI of the resource to embed
-