Base URL.
Base file path.
Fixed content type that will be used for all resources.
An optional suffix that will be appended to all file paths. Requested file paths without this suffix will be rejected.
An optional suffix that will be appended to all URL. Requested URLs without this suffix will be rejected.
Protected
Readonly
baseProtected
Readonly
contentProtected
Readonly
loggerProtected
Readonly
pathProtected
Readonly
rootProtected
Readonly
unknownProtected
Readonly
urlProtected
getProtected
getProtected
getProtected
getDetermines the content type from the document identifier.
The input identifier.
Optional
contentType: stringThe content-type provided with the request.
The content type of the document.
Protected
getProtected
getStrips the baseRequestURI from the identifier.
NotFoundHttpError If the identifier does not match the baseRequestURI.
Incoming identifier.
A string representing the relative path.
Protected
isMaps 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.
Protected
mapMaps 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.
Maps 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.
Optional
contentType: 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.
Optional
contentType: stringThe content-type provided with the request.
A ResourceLink with all the necessary metadata.
Protected
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.
A mapper that always returns a fixed content type for files.