Class TileResource
java.lang.Object
is.galia.resource.AbstractResource
is.galia.resource.AbstractImageResource
is.galia.resource.deepzoom.TileResource
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Path that will be used if not overridden byKey.DEEPZOOM_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
doGET()
Must be overridden by implementations that supportGET
.void
doInit()
Initialization method, called after all necessary setters have been called but before any request handler method (likeAbstractResource.doGET()
etc.)Returns the identifier of the source image, which may be a filename, an object store key, or something else.protected String
Returns the first path argument, which is always an identifier.protected org.slf4j.Logger
protected MetaIdentifier
Returns the decoded meta-identifier path component of the URI, which may include page number or other information.protected Reference
getPublicReference
(MetaIdentifier newMetaIdentifier) Variant ofAbstractResource.getPublicReference()
that replaces the identifier path component's meta-identifier if an identifier path component is available.Part of theResource
contract.static String
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, doHEAD, doOPTIONS, doPATCH, doPOST, doPUT, getCanonicalClientIPAddress, getCommonTemplateVars, getDelegate, getLocalBasePath, getPreferredMediaTypes, getPublicReference, getPublicRootReference, getRepresentationDisposition, getRequest, getRequestContext, getResponse, negotiateContentType, setRequest, setResponse
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface is.galia.resource.Resource
destroy, doDELETE, doHEAD, doOPTIONS, doPATCH, doPOST, doPUT, getRequest, getResponse, setRequest, setResponse
-
Field Details
-
DEFAULT_URI_PATH
Path that will be used if not overridden byKey.DEEPZOOM_ENDPOINT_PATH
in the application configuration.- See Also:
-
-
Constructor Details
-
TileResource
public TileResource()
-
-
Method Details
-
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
.- Specified by:
doInit
in interfaceResource
- Throws:
Exception
- upon any error. This may be aResourceException
to enable a custom status.
-
getLogger
protected org.slf4j.Logger getLogger()- Specified by:
getLogger
in classAbstractResource
-
getPublicReference
Description copied from class:AbstractImageResource
Variant ofAbstractResource.getPublicReference()
that replaces the identifier path component's meta-identifier if an identifier path component is available.- Specified by:
getPublicReference
in classAbstractImageResource
- Parameters:
newMetaIdentifier
- Meta-identifier.
-
getRoutes
Description copied from class:AbstractResource
Part of theResource
contract.- Specified by:
getRoutes
in interfaceResource
- Specified by:
getRoutes
in classAbstractResource
- Returns:
- All routes to which the instance responds.
-
doGET
Description copied from class:AbstractResource
Must be overridden by implementations that support
GET
.Overrides must not call
super
.- Specified by:
doGET
in interfaceResource
- Overrides:
doGET
in classAbstractResource
- Throws:
Exception
- upon any error. This may be aResourceException
to enable a custom status.- See Also:
-
getURIPath
- Returns:
- URI path prefix without trailing slash.
-
getIdentifier
Description copied from class:AbstractImageResource
Returns the identifier of the source image, which may be a filename, an object store key, or something else.- Specified by:
getIdentifier
in classAbstractImageResource
- Returns:
- The identifier of the source image.
-
getIdentifierPathComponent
Returns the first path argument, which is always an identifier.
The result is not decoded and may be a
meta-identifier
. If so, it is not usable without additional processing.- Returns:
- Identifier, or
null
if no path arguments are available.
-
getMetaIdentifier
Description copied from class:AbstractImageResource
Returns the decoded meta-identifier path component of the URI, which may include page number or other information. (This may not be the path component that the client supplies or sees.)- Specified by:
getMetaIdentifier
in classAbstractImageResource
- Returns:
- Instance corresponding to the first path argument, or
null
if no path arguments are available. - See Also:
-