Options
All
  • Public
  • Public/Protected
  • All
Menu

A default resolver that uses a session and a contents manager.

Hierarchy

  • UrlResolver

Implements

  • IResolver

Index

Constructors

constructor

Properties

Private _contents

_contents: IManager

Private _session

_session: ISession | IClientSession

Methods

getDownloadUrl

  • getDownloadUrl(url: string): Promise<string>
  • Get the download url of a given absolute url path.

    Parameters

    • url: string

    Returns Promise<string>

isLocal

  • isLocal(url: string): boolean
  • Whether the URL should be handled by the resolver or not.

    Notes

    This is similar to the isLocal check in URLExt, but it also checks whether the path points to any of the IDrives that may be registered with the contents manager.

    Parameters

    • url: string

    Returns boolean

resolveUrl

  • resolveUrl(url: string): Promise<string>
  • Resolve a relative url to an absolute url path.

    Parameters

    • url: string

    Returns Promise<string>

Generated using TypeDoc