Class IIIFUrlHandler

java.lang.Object
io.goobi.viewer.controller.imaging.IIIFUrlHandler

public class IIIFUrlHandler extends Object

IIIFUrlHandler class.

Author:
Florian Alpers
  • Constructor Details

    • IIIFUrlHandler

      public IIIFUrlHandler(AbstractApiUrlManager urls)
      Parameters:
      urls -
    • IIIFUrlHandler

      public IIIFUrlHandler(URI apiUrl)
    • 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
      Parameters:
      apiUrl -
      inFileUrl - a String object.
      docStructIdentifier -
      region - a String object.
      size - a String object.
      rotation - a String object.
      quality - a String object.
      format - a String object.
      Returns:
      Generated URL
    • 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
      Parameters:
      baseUrl - a String object.
      region - a RegionRequest object.
      size - a Scale object.
      rotation - a Rotation object.
      quality - a ImageType.Colortype object.
      format - a ImageFileFormat object.
      Returns:
      a String object.
    • 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
      Parameters:
      url - a String object.
      region - a RegionRequest object.
      size - a Scale object.
      rotation - a Rotation object.
      quality - a ImageType.Colortype object.
      format - a ImageFileFormat object.
      Returns:
      a String object.
    • getUrlManager

      public AbstractApiUrlManager getUrlManager()
      Returns:
      the urls
    • isIIIFUrl

      public boolean isIIIFUrl(String url)