Class IIIFPresentationAPIHandler
java.lang.Object
io.goobi.viewer.controller.imaging.IIIFPresentationAPIHandler
Creates urls to IIIF Presentation api calls to get manifests, canvases, annotationLists or layers
- Author:
- Florian Alpers
-
Constructor Summary
ConstructorsConstructorDescriptionIIIFPresentationAPIHandler(AbstractApiUrlManager urls, Configuration configuration) Constructor for IIIFPresentationAPIHandler. -
Method Summary
Modifier and TypeMethodDescriptiongetAnnotationsUrl(String pi, int pageOrder, String annotationType) Returns a IIIF annotation list containing all annotations of the given type for the given pagegetCanvasUrl(String pi, int pageOrder) Returns the IIIF canvas for the given pageReturns the url to a IIIF collection resource containing all top level collections for the field DCgetCollectionUrl(String field) Returns the url to a IIIF collection resource containing all top level collections for the given fieldgetCollectionUrl(String field, String collection) Returns the url to a IIIF collection resource for the given collection name for the given fieldgetLayerUrl(String pi, String annotationType) Returns a IIIF layer with all annotations of the giventypewithin the work of the given pigetManifestUrl(String pi) Returns the url to the manifest for the given pigetPageManifestUrl(String pi, int pageNo) Returns the url to the manifest for the given pigetRangeUrl(String pi, String logId) Returns a IIIF range representing the structural element for the given PI and logid.
-
Constructor Details
-
IIIFPresentationAPIHandler
public IIIFPresentationAPIHandler(AbstractApiUrlManager urls, Configuration configuration) throws URISyntaxException Constructor for IIIFPresentationAPIHandler.
- Parameters:
urls-configuration- aConfigurationobject.- Throws:
URISyntaxException- if any.
-
-
Method Details
-
getPageManifestUrl
Returns the url to the manifest for the given pi- Parameters:
pi- aStringobject.pageNo-- Returns:
- The IIIF manifest
- Throws:
URISyntaxException- if any.
-
getManifestUrl
Returns the url to the manifest for the given pi- Parameters:
pi- aStringobject.- Returns:
- The IIIF manifest
- Throws:
URISyntaxException- if any.
-
getCollectionUrl
Returns the url to a IIIF collection resource containing all top level collections for the field DC- Returns:
- The IIIF collection url
- Throws:
URISyntaxException- if any.
-
getCollectionUrl
Returns the url to a IIIF collection resource containing all top level collections for the given field- Parameters:
field- aStringobject.- Returns:
- The IIIF collection url
- Throws:
URISyntaxException- if any.
-
getCollectionUrl
Returns the url to a IIIF collection resource for the given collection name for the given field- Parameters:
field- aStringobject.collection- aStringobject.- Returns:
- The IIIF collection url
- Throws:
URISyntaxException- if any.
-
getLayerUrl
Returns a IIIF layer with all annotations of the giventypewithin the work of the given pi- Parameters:
pi- aStringobject.annotationType- aStringobject.- Returns:
- The IIIF layer url
- Throws:
URISyntaxException- if any.
-
getAnnotationsUrl
public String getAnnotationsUrl(String pi, int pageOrder, String annotationType) throws URISyntaxException Returns a IIIF annotation list containing all annotations of the given type for the given page- Parameters:
pi- aStringobject.pageOrder- a int.annotationType- aStringobject.- Returns:
- The IIIF annotation list
- Throws:
URISyntaxException- if any.
-
getCanvasUrl
Returns the IIIF canvas for the given page- Parameters:
pi- aStringobject.pageOrder- a int.- Returns:
- The IIIF canvas url
- Throws:
URISyntaxException- if any.
-
getRangeUrl
Returns a IIIF range representing the structural element for the given PI and logid. If the logid is the logid of the work itself, The "CONTENT" range is returned, containing all topmost ranges but no canvases and no metadata- Parameters:
pi- aStringobject.logId- aStringobject.- Returns:
- The IIIF range url
- Throws:
URISyntaxException- if any.
-