Class IIIF2Resource
java.lang.Object
is.galia.resource.AbstractResource
is.galia.resource.AbstractImageResource
is.galia.resource.iiif.IIIFResource
is.galia.resource.iiif.v2.IIIF2Resource
- Direct Known Subclasses:
IdentifierResource
,ImageResource
,InformationResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Path that will be used if not overridden byKey.IIIF_2_ENDPOINT_PATH
in the application configuration.Fields inherited from class is.galia.resource.AbstractResource
PUBLIC_IDENTIFIER_HEADER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doInit()
Initialization method, called after all necessary setters have been called but before any request handler method (likeAbstractResource.doGET()
etc.)static String
Methods inherited from class is.galia.resource.iiif.IIIFResource
constrainSizeToMaxPixels, getIdentifier, getIdentifierPathComponent, getMetaIdentifier, getPublicIdentifier, getPublicReference, handleAuthInfoForInfoRequest, setLastModifiedHeader, validateScale
Methods inherited from class is.galia.resource.AbstractImageResource
authorize, authorizeBeforeAccess, getPageIndex, handleAuthInfo, isBypassingCache, isBypassingCacheRead, redirectToNormalizedScaleConstraint
Methods inherited from class is.galia.resource.AbstractResource
authenticateUsingBasic, decodePathComponent, destroy, doDELETE, doGET, doHEAD, doOPTIONS, doPATCH, doPOST, doPUT, getCanonicalClientIPAddress, getCommonTemplateVars, getDelegate, getLocalBasePath, getLogger, getPreferredMediaTypes, getPublicReference, getPublicRootReference, getRepresentationDisposition, getRequest, getRequestContext, getResponse, getRoutes, negotiateContentType, setRequest, setResponse
-
Field Details
-
DEFAULT_URI_PATH
Path that will be used if not overridden byKey.IIIF_2_ENDPOINT_PATH
in the application configuration.- See Also:
-
-
Constructor Details
-
IIIF2Resource
public IIIF2Resource()
-
-
Method Details
-
getURIPath
- Returns:
- URI path prefix without trailing slash.
-
doInit
Description copied from class:AbstractResource
Initialization method, called after all necessary setters have been called but before any request handler method (like
AbstractResource.doGET()
etc.)If an implementation class has anything to do with
image identifiers
, it should add the request identifier to therequest context
.Overrides must call
super
.- Overrides:
doInit
in classIIIFResource
- Throws:
Exception
- upon any error. This may be aResourceException
to enable a custom status.
-