Optional customTypes: Record<string, string>Protected Readonly basePrivate Readonly customPrivate Readonly customProtected Readonly loggerProtected Readonly rootProtected Readonly unknownProtected getProtected getProtected getProtected getDetermines the content type from the document identifier.
The content type of the document.
The input identifier.
Optional contentType: stringThe content-type provided with the request.
Protected getProtected getStrips the baseRequestURI from the identifier.
NotFoundHttpError If the identifier does not match the baseRequestURI.
A string representing the relative path.
Incoming identifier.
Protected isMaps the given file path to a URL and determines its content type.
A ResourceLink with all the necessary metadata.
The input file path.
If the path corresponds to a file.
Protected mapMaps the given container identifier to a file path, possibly making alterations to the direct translation.
A ResourceLink with all the necessary metadata.
The input identifier.
The direct translation of the identifier onto the file path.
Protected mapMaps 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.
A ResourceLink with all the necessary metadata.
The input identifier.
The direct translation of the identifier onto the file path.
Optional contentType: stringThe content-type provided with the request.
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.
A ResourceLink with all the necessary metadata.
The input identifier.
If we need the data or metadata file path.
Optional contentType: stringThe content-type provided with the request.
Protected stripProtected validateCheck if the given relative path is valid.
BadRequestHttpError If the relative path is invalid.
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 $.