Class IIIFUrlHandler
java.lang.Object
io.goobi.viewer.controller.imaging.IIIFUrlHandler
IIIFUrlHandler class.
- Author:
- Florian Alpers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetIIIFImageUrl
(String baseUrl, de.unigoettingen.sub.commons.contentlib.imagelib.transform.RegionRequest region, de.unigoettingen.sub.commons.contentlib.imagelib.transform.Scale size, de.unigoettingen.sub.commons.contentlib.imagelib.transform.Rotation rotation, de.unigoettingen.sub.commons.contentlib.imagelib.ImageType.Colortype quality, de.unigoettingen.sub.commons.contentlib.imagelib.ImageFileFormat format) Appends image request parameter paths to the given baseUrlgetIIIFImageUrl
(String fileUrl, String docStructIdentifier, String region, String size, String rotation, String quality, String format) getIIIFImageUrl
(String apiUrl, String inFileUrl, String docStructIdentifier, String region, String size, String rotation, String quality, String format) Returns a link to the actual image of the given page, delivered via IIIF api using the given parametersgetModifiedIIIFFUrl
(String url, de.unigoettingen.sub.commons.contentlib.imagelib.transform.RegionRequest region, de.unigoettingen.sub.commons.contentlib.imagelib.transform.Scale size, de.unigoettingen.sub.commons.contentlib.imagelib.transform.Rotation rotation, de.unigoettingen.sub.commons.contentlib.imagelib.ImageType.Colortype quality, de.unigoettingen.sub.commons.contentlib.imagelib.ImageFileFormat format) Replaces the image request parameters in an IIIF URL with the given onesboolean
-
Constructor Details
-
IIIFUrlHandler
- Parameters:
urls
-
-
IIIFUrlHandler
-
IIIFUrlHandler
public IIIFUrlHandler()
-
-
Method Details
-
getIIIFImageUrl
public String getIIIFImageUrl(String fileUrl, String docStructIdentifier, String region, String size, String rotation, String quality, String format) - Parameters:
fileUrl
-docStructIdentifier
-region
-size
-rotation
-quality
-format
-- Returns:
- Generated URL
-
getIIIFImageUrl
public String getIIIFImageUrl(String apiUrl, String inFileUrl, String docStructIdentifier, String region, String size, String rotation, String quality, String format) Returns a link to the actual image of the given page, delivered via IIIF api using the given parameters -
getIIIFImageUrl
public String getIIIFImageUrl(String baseUrl, de.unigoettingen.sub.commons.contentlib.imagelib.transform.RegionRequest region, de.unigoettingen.sub.commons.contentlib.imagelib.transform.Scale size, de.unigoettingen.sub.commons.contentlib.imagelib.transform.Rotation rotation, de.unigoettingen.sub.commons.contentlib.imagelib.ImageType.Colortype quality, de.unigoettingen.sub.commons.contentlib.imagelib.ImageFileFormat format) Appends image request parameter paths to the given baseUrl -
getModifiedIIIFFUrl
public String getModifiedIIIFFUrl(String url, de.unigoettingen.sub.commons.contentlib.imagelib.transform.RegionRequest region, de.unigoettingen.sub.commons.contentlib.imagelib.transform.Scale size, de.unigoettingen.sub.commons.contentlib.imagelib.transform.Rotation rotation, de.unigoettingen.sub.commons.contentlib.imagelib.ImageType.Colortype quality, de.unigoettingen.sub.commons.contentlib.imagelib.ImageFileFormat format) Replaces the image request parameters in an IIIF URL with the given ones -
getUrlManager
- Returns:
- the urls
-
isIIIFUrl
-