OptionalcustomTypes: Record<string, string>Protected ReadonlybaseProtected ReadonlyloggerProtected ReadonlyrootProtected ReadonlyunknownProtectedgetProtectedgetProtectedgetProtectedgetDetermines the content type from the document identifier.
The input identifier.
OptionalcontentType: stringThe content-type provided with the request.
The content type of the document.
ProtectedgetProtectedgetStrips the baseRequestURI from the identifier.
Incoming identifier.
A string representing the relative path.
ProtectedisMaps the given file path to a URL and determines its content type.
The input file path.
If the path corresponds to a file.
A ResourceLink with all the necessary metadata.
ProtectedmapMaps the given container identifier to a file path, possibly making alterations to the direct translation.
The input identifier.
The direct translation of the identifier onto the file path.
A ResourceLink with all the necessary metadata.
ProtectedmapMaps the given document identifier to a file path, possibly making alterations to the direct translation (for instance, based on its content type)). Determines the content type if none was provided.
The input identifier.
The direct translation of the identifier onto the file path.
OptionalcontentType: stringThe content-type provided with the request.
A ResourceLink with all the necessary metadata.
Maps the given resource identifier / URL to a file path. Determines the content type if none was provided. For containers the content-type input is ignored.
The input identifier.
If we need the data or metadata file path.
OptionalcontentType: stringThe content-type provided with the request.
A ResourceLink with all the necessary metadata.
ProtectedstripProtectedvalidateCheck whether the given relative path is valid.
A relative path, as generated by getRelativePath.
A resource identifier.
Supports the behaviour described in https://www.w3.org/DesignIssues/HTTPFilenameMapping.html Determines content-type based on the file extension. In case an identifier does not end on an extension matching its content-type, the corresponding file will be appended with the correct extension, preceded by $.