Class ImageResource
java.lang.Object
is.galia.resource.AbstractResource
is.galia.resource.AbstractImageResource
is.galia.resource.iiif.IIIFResource
is.galia.resource.iiif.v3.ImageResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPath that will be used if not overridden byKey.IIIF_3_ENDPOINT_PATHin the application configuration.Fields inherited from class is.galia.resource.AbstractResource
PUBLIC_IDENTIFIER_HEADER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoGET()Responds to image requests.voiddoInit()Initialization method, called after all necessary setters have been called but before any request handler method (likeAbstractResource.doGET()etc.)protected org.slf4j.LoggerPart of theResourcecontract.static StringMethods inherited from class is.galia.resource.iiif.IIIFResource
constrainSizeToMaxPixels, getIdentifier, getIdentifierPathComponent, getMetaIdentifier, getPublicIdentifier, getPublicReference, handleAuthInfoForInfoRequest, setLastModifiedHeader, validateScaleMethods inherited from class is.galia.resource.AbstractImageResource
authorize, authorizeBeforeAccess, getPageIndex, handleAuthInfo, isBypassingCache, isBypassingCacheRead, redirectToNormalizedScaleConstraintMethods inherited from class is.galia.resource.AbstractResource
authenticateUsingBasic, decodePathComponent, destroy, doDELETE, doHEAD, doOPTIONS, doPATCH, doPOST, doPUT, getCanonicalClientIPAddress, getCommonTemplateVars, getDelegate, getLocalBasePath, getPreferredMediaTypes, getPublicReference, getPublicRootReference, getRepresentationDisposition, getRequest, getRequestContext, getResponse, negotiateContentType, setRequest, setResponseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface is.galia.resource.Resource
destroy, doDELETE, doHEAD, doInit, doOPTIONS, doPATCH, doPOST, doPUT, getRequest, getResponse, setRequest, setResponse
-
Field Details
-
DEFAULT_URI_PATH
Path that will be used if not overridden byKey.IIIF_3_ENDPOINT_PATHin the application configuration.- See Also:
-
-
Constructor Details
-
ImageResource
public ImageResource()
-
-
Method Details
-
getLogger
protected org.slf4j.Logger getLogger()- Specified by:
getLoggerin classAbstractResource
-
getRoutes
Description copied from class:AbstractResourcePart of theResourcecontract.- Specified by:
getRoutesin interfaceResource- Specified by:
getRoutesin classAbstractResource- Returns:
- All routes to which the instance responds.
-
doGET
Responds to image requests.- Specified by:
doGETin interfaceResource- Overrides:
doGETin classAbstractResource- Throws:
Exception- upon any error. This may be aResourceExceptionto enable a custom status.- See Also:
-
getURIPath
- Returns:
- URI path prefix without trailing slash.
-
doInit
Description copied from class:AbstractResourceInitialization 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:
doInitin classIIIFResource- Throws:
Exception- upon any error. This may be aResourceExceptionto enable a custom status.
-