mixinafFandoc::LinkResolver
afFandoc::LinkResolver
@
Js
An interface for resolving URI links.
- idPassThroughResolver
static LinkResolver idPassThroughResolver()
Returns a
LinkResolver
that returns the givenurl
should it be prefixed with a#
.- javascriptErrorResolver
static LinkResolver javascriptErrorResolver(Uri errorUrl := `/error`)
Returns a
LinkResolver
that returns anerrorUrl
should the givenurl
have a scheme ofjavascript:
.- passThroughResolver
static LinkResolver passThroughResolver()
Returns a basic
LinkResolver
that just returns the givenurl
.- pathAbsPassThroughResolver
static LinkResolver pathAbsPassThroughResolver()
Returns a
LinkResolver
that returns the givenurl
should it be path absolute.- resolve
abstract Uri? resolve(DocElem elem, Str? scheme, Uri url)
Resolve the given
url
.- schemePassThroughResolver
static LinkResolver schemePassThroughResolver(Str[] schemes := "http https ftp data".split())
Returns a
LinkResolver
that returns the givenurl
should it be qualified with a common scheme such as:http
,https
,ftp
,data
.