Skip to main content

OdspDriverUrlResolver Class

Resolver to resolve urls like the ones created by createOdspUrl which is driver inner url format. Ex: ${siteUrl}?driveId=${driveId}&itemId=${itemId}&path=${path}

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/odsp-driver/legacy.

For more information about our API support guarantees, see here.

Signature

export declare class OdspDriverUrlResolver implements IUrlResolver

Implements: IUrlResolver

Constructors

ConstructorAlertsDescription
(constructor)()BetaConstructs a new instance of the OdspDriverUrlResolver class

Methods

MethodAlertsReturn TypeDescription
getAbsoluteUrl(resolvedUrl, relativeUrl, packageInfoSource)BetaPromise<string>Requests a driver + data store storage URL.
resolve(request)BetaPromise<IOdspResolvedUrl>

Constructor Details

(constructor)

Constructs a new instance of the OdspDriverUrlResolver class

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

constructor();

Method Details

getAbsoluteUrl

Requests a driver + data store storage URL.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string, packageInfoSource?: IContainerPackageInfo): Promise<string>;

Parameters

ParameterModifiersTypeDescription
resolvedUrlIResolvedUrlThe driver resolved URL.
relativeUrlstringThe relative data store path URL. For requesting a driver URL, this value should always be '/'. If an empty string is passed, then dataStorePath will be extracted from the resolved url if present.
packageInfoSourceoptionalIContainerPackageInfooptional, represents container package information to be included in url.

Returns

Return type: Promise<string>

resolve

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature

resolve(request: IRequest): Promise<IOdspResolvedUrl>;

Parameters

ParameterTypeDescription
requestIRequest

Returns

Return type: Promise<IOdspResolvedUrl>